JDK-8153362: [jigsaw] Add javac -Xlint warning to list exposed types which are not accessible

cowwoc cowwoc at bbs.darktech.org
Thu Oct 12 22:10:08 UTC 2017


Alan Bateman wrote
> A type safe approach would be to define a helper interface in a 
> non-exported package and have the enum register an implementation. 
> Static methods on the interface, or a separate helper, would provide 
> consumers in the module a way to obtain the implementation. We uses this 
> approach in the java.base module where it known as the "shared secrets 
> mechanism".

Hi Alan,

Can you provide an example of the "shared secrets mechanism"? You mentioned
the java.base module but it's not clear where to look. It might also be
easier if you reply at https://stackoverflow.com/q/46701545/14731 so others
can see your answer.

Thanks,
Gili



--
Sent from: http://jigsaw-dev.1059479.n5.nabble.com/


More information about the jigsaw-dev mailing list