Answering my own question, this is clear after reading the proposal once more.
Warnings are generated for reflective access only.
Paul
> On Jun 24, 2017, at 6:56 PM, Paul Bakker wrote:
>
> The following code uses an encapsulated type:
>
> import sun.security.x509.X500Name;
> public class Encap
The following code uses an encapsulated type:
import sun.security.x509.X500Name;
public class EncapsulatedTypes {
public static void main(String... args) throws Exception {
System.out.println(new X500Name("test.com", "test", "test", "US"));
}
}
When running this code with "java -