RFR 8169435 : ClassLoader.isParallelCapable is final and conflicting method may get VerifyError
Brent Christian
brent.christian at oracle.com
Mon Nov 21 18:36:03 UTC 2016
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/
Thanks,
-Brent
More information about the core-libs-dev
mailing list