RFR[9]: 8178832: (ref) jdk.lang.ref.disableClearBeforeEnqueue property is ignored

Mandy Chung mandy.chung at oracle.com
Wed Apr 19 18:51:12 UTC 2017


> On Apr 19, 2017, at 2:02 AM, Peter Levart <peter.levart at gmail.com> wrote:
> 
> I wonder if there are (or will be) other places where such silent swallowing of run-time exceptions happens or will happen. Wouldn't it be good to "fix" Boolean.getBoolean() and friends?
> 
> I filed the following bug to track this:
> 
> https://bugs.openjdk.java.net/browse/JDK-8178966
> 

Thanks for creating the issue.  I fully agree that we should fix this and silent swallowing the exceptions makes the underlying problem unnoticed.

Your proposed patch looks good to me.  NPE would be thrown if it’s called before the system properties are initialized. 

Mandy



More information about the core-libs-dev mailing list