RFR 8169435 : ClassLoader.isParallelCapable is final and conflicting method may get VerifyError

Mandy Chung mandy.chung at oracle.com
Mon Nov 21 19:12:31 UTC 2016


> On Nov 21, 2016, at 10:36 AM, Brent Christian <brent.christian at oracle.com> wrote:
> 
> On 11/11/16 2:16 AM, Alan Bateman wrote:
> >>>
>>>> Since there is already a @CallerSensitive protected static method
>>>> called "registerAsParallelCapable" for subclasses to call from their
>>>> <clinit> blocks, the query could be called:
>>>> 
>>>> isRegisteredAsParallelCapable() ?
>>>> 
>>>> I doubt this name is already taken by any subclass out there…
>>>> 
>> It's always a potential compatibility issue to add a final method to a
>> non-final class but if we can get away with the rename suggested by
>> Peter then it would be good.
> 
> Our investigation indicates that odds are very good that "isRegisteredAsParallelCapable" will work, and I see the preference leaning toward keeping this a final instance method.
> 
> http://cr.openjdk.java.net/~bchristi/8169435/webrev.1/

+1
Mandy



More information about the core-libs-dev mailing list