Please review: 7146552 LoggingMXBeanTest intermittent failure (original) (raw)

Jim Gish jim.gish at oracle.com
Fri Oct 12 16:55:45 UTC 2012


Please review http://cr.openjdk.java.net/~jgish/Bug7146552-LoggingMXBeanTest-failure/ <http://cr.openjdk.java.net/%7Ejgish/Bug7146552-LoggingMXBeanTest-failure/>

The LoggingMXBeanTest has been intermittently failing because garbage collection can cause the (weak) references to Logger instances to go away. LoggingMXBeanTest2 has the same issue, but no bug has (yet) been filed against it.

The fix is to simply make the Logger variables static so they don't get gc'd.

Thanks, Jim

-- Jim Gish | Consulting Member of Technical Staff | +1.781.442.0304 Oracle Java Platform Group | Core Libraries Team 35 Network Drive Burlington, MA 01803 jim.gish at oracle.com



More information about the core-libs-dev mailing list