RFR (S) JDK-8026394: Eclipse fails with JDK8 build 111
Lois Foltan
lois.foltan at oracle.com
Tue Oct 22 11:55:26 PDT 2013
On 10/21/2013 10:48 PM, David Holmes wrote:
> Hi Lois,
>
>
> On 22/10/2013 9:58 AM, Lois Foltan wrote:
>> Please review the following fix:
>>
>> Webrev:
>> http://cr.openjdk.java.net/~hseigel/bug_jdk8026394/
>>
>> Bug: Eclipse fails with JDK8 build 111
>> https://bugs.openjdk.java.net/browse/JDK-8026394
>>
>> Summary of fix:
>> If a direct interface of a class does not declare "clone" or
>> "finalize" methods, the selection process
>> looks to the interface's super class, java.lang.Object. With the
>> JDK 8 interface accessability
>> check requirement, since these methods are declared within Object
>> as protected, an IAE would
>> result. In order to support pre-existing Java code,
>> LinkResolver::check_method_accessability()
>> must check for and special case these two methods.
>
> I must confess that I'm a bit confused by the problem and the
> solution. Just looking at the test you define public clone and
> finalize methods in the interface and you implement them in the class
> as public - so why would Object's protected variants even get a
> look-in in this scenario ??? It seems to me, likely naively, that the
> issue is not being unable to access Object's clone/finalize because
> they are protected, but even looking at Object's methods in the first
> place!
Hi David,
Hopefully you saw Karen's subsequent email indicating that this issue is
still under consideration. I do agree with your points concerning the
test case, but basically I took the example code cited in the bug report
to develop the test which I believe is a representation of actual code
within the Eclipse CDT framework that exposed the bug.
>
> That aside - Unrelated to your changes but can you fix the duplicated
> copyright line please:
>
> 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All
> rights reserved.
> 3 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All
> rights reserved.
Fixed. Thank you for the review!
Lois
>
> Thanks,
> David
>
>> Tests:
>> Completed - jtreg, vm.quick.testlist, jck vm & lang
>> In progress - jdk java.lang & java.util
>>
>> Thank you, Lois
More information about the hotspot-runtime-dev
mailing list