On 01/11/2012 10:50 AM, Stephen Connolly wrote:
getClass().getClassLoader().getPackage("").getImplementationVersion()


I really liked the simplicity of this idea. Alas, ClassLoader.getPackage(String) is a protected method, so this won't help.

Accessible to me is:

Package.getPackage("").getImplementationVersion(), which according to Javadocs sounds like it would do the same thing, but this throws a NullPointerException.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to