-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b128
-
unknown
-
generic
-
Verified
The initial version if compiler changes supporting 292 features contained special syntax for denoting return type in a polymorphic signature call. Such syntax, leveraging explicit type-arguments in method calls, has been dropped in favor of a syntax leveraging cast:
BEFORE:
s = mh.<String>invokeExact("daddy",'d','n');
AFTER:
s = (String)mh.invokeExact("bunny",'n','d');
Old syntax is still allowed in order to favor migration of existing 292 clients to the new syntax - however, such support is meant to be transient and, consequently, is to be removed.
BEFORE:
s = mh.<String>invokeExact("daddy",'d','n');
AFTER:
s = (String)mh.invokeExact("bunny",'n','d');
Old syntax is still allowed in order to favor migration of existing 292 clients to the new syntax - however, such support is meant to be transient and, consequently, is to be removed.
- relates to
-
JDK-7012406 JSR 292: target typing cast and parenthesis
- Closed
-
JDK-7010194 several langtools regression failures after JSR 292 changes (b123)
- Closed
-
JDK-6979327 method handle invocation should use casts instead of type parameters to specify return type
- Closed
-
JDK-6981791 remove experimental code for JSR 292
- Closed