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 11:02:19 PDT 2010


On Oct 14, 2010, at 6:53 PM, John Rose wrote:
> On Oct 14, 2010, at 2:15 AM, Christian Thalinger wrote:
>
>> 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
>
> Indeed, I thought it would be.  But it's broken.  :-(  The new  
> syntax almost works, but the cast type is dropped and the return  
> type stays as the default, Object.
>
> This is because bug 6979327 had a bad fix, introduced somehow just  
> before integration.  The re-fix will be bug 6991980.  Sorry, folks.

When will the fix be available?  Should I wait for 6991980 before I  
push my changes or should I fix the test later?

-- Christian


More information about the hotspot-compiler-dev mailing list