Request for reviews (S): 6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
Christian Thalinger
christian.thalinger at oracle.com
Thu Oct 14 02:15:25 PDT 2010
On Oct 14, 2010, at 11:00 AM, Rémi Forax wrote:
> Le 14/10/2010 10:43, Christian Thalinger a écrit :
>> On Oct 14, 2010, at 1:32 AM, John Rose wrote:
>>>> This change also adds a testcase that tests as much conversions as
>>>> currently possible (there are some bugs in the current RI).
>>>
>>>
>>> That's a very nice test case!
>>>
>>> I believe the newer version of javac support for method handles
>>> has been released. If so, compiling the test case will cause
>>> warnings, and those warnings will turn to errors as JSR 292
>>> finalizes. Please try the new syntax:
>>>
>>> - boolean a = mh1.<boolean>invokeExact((boolean) x);
>>> - boolean a = (boolean) mh1.invokeExact((boolean) x);
>>
>> I know and I also tried that but it seems there is a bug somewhere:
>>
>> Exception in thread "main" java.dyn.WrongMethodTypeException: (Z)Z
>> cannot be called as (Z)Ljava/lang/Object;
>
> Your javac just doesn't understand the new syntax.
Well, then the new javac isn't in b113. -- Christian
More information about the hotspot-compiler-dev
mailing list