Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes issue AIX and OSMBean getFreePhysicalMemorySize #16065
I'm running in a very strange test failure.
It has to do with the public access modifier. In the current code, this test will always run in an IllegalAccessException and then the default value is returned.
In 4.0 the same code doesn't run into an IllegalAccessException; so everything is working fine.
This in itself is already very strange because I'm using exactly the same JVM.
The other thing that is strange is that if I remove the checks, and unconditionally make the method public, the test works fine.
So apparently the method isn't public because making it public, makes the code work. But if I ask if the method is public, it already says.. yes I'm public.