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.g...@oracle.com

Reply via email to