RFR(S): 8160564: TEST: Add a test to check the implementation of VersionProps.versionNumbers()
Alan Bateman
Alan.Bateman at oracle.com
Thu Jul 7 14:26:06 UTC 2016
On 07/07/2016 14:59, Volker Simonis wrote:
> :
>
> - I was a little bit surprised that I could reflectively access and
> execute java.lang.VersionProps.parseVersionNumbers() where both the
> class and the method are package private. Maybe this is related to
> Jigsaw issue #ReflectiveAccessToNonExportedTypes [3]? As I'm not a
> Jigsaw expert, I'd be graceful to anybody explaining me why this is
> still so easily possible with Jigsaw?
>
>
java.lang is an exported package and I assume you are using
setAccessible(true) too.
-Alan
More information about the core-libs-dev
mailing list