wrote:
> Why this compile error?
> ASNName.java:86: cannot resolve symbol
> symbol : class X500Name
> location: package x509
> return new sun.security.x509.X500Name(mName);
>
> even though
> I have:
> import java.security.*;
> in my .java file.
>
import java.security.*
will import
java.security.x509 (if it existed)
but will not import either
java.security.x509.X500Name
sun.security.x509
The first because packages don't nest. The package
java.security.x509.X500Name would not be not inside the package
java.security.x509 (if either existed)
The second because java != sun.
HTH.
--
RGB