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

Alan Bateman Alan.Bateman at oracle.com
Fri Nov 11 10:16:21 UTC 2016


On 10/11/2016 22:46, Mandy Chung 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…
> isRegisteredAsParallelCapable may be okay.
>
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. I hope there will be enough usages of the 
EA builds to shake out any other conflicts.

-Alan.


More information about the core-libs-dev mailing list