Please review: 7146552 LoggingMXBeanTest intermittent failure

Alan Bateman Alan.Bateman at oracle.com
Fri Oct 12 18:21:43 UTC 2012


On 12/10/2012 17:55, Jim Gish wrote:
> 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.
This looks fine to me and I'd suggesting using the one bug for both.

-Alan



More information about the core-libs-dev mailing list