[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-core-dev] [1.5] Tuned support for generic methods
|
If you pay even more attention, you'll observe that AX<E> was useless for
the explanation... <g>
Philippe P
Mulet/France/IBM@
IBMFR To
Sent by: jdt-core-dev@xxxxxxxxxxx
jdt-core-dev-admi cc
n@xxxxxxxxxxx
Subject
[jdt-core-dev] [1.5] Tuned support
05/06/2004 06:35 for generic methods
PM
Please respond to
jdt-core-dev
Cheetah is now able to digest code like:
public class X {
public static void main(String[] args) {
String s = bar();
}
public static <T> T bar() {
return null;
}
}
class AX<E> {
}
If you pay attention, you'll observe that for invocation of #bar(), the
inferred type for 'T' needs to be deducted from invocation context where
the return value is assigned to a variable of type 'String'.
_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev