< prev index next >

src/java.base/share/classes/java/lang/Class.java

Print this page

        

*** 3902,3913 **** * classes and interfaces that are declared in the * {@linkplain #getNestHost() nest host} of this class, as being members * of its nest. The nest host will always be the zeroeth element. * * <p>Each listed nest member must be validated by checking its own ! * declared {@linkplain #getNestHost() nest host}. Any exceptions that occur ! * as part of this process will be thrown. * * @return an array of all classes and interfaces in the same nest as * this class * * @throws LinkageError if there is any problem loading or validating --- 3902,3920 ---- * classes and interfaces that are declared in the * {@linkplain #getNestHost() nest host} of this class, as being members * of its nest. The nest host will always be the zeroeth element. * * <p>Each listed nest member must be validated by checking its own ! * declared nest host. Any exceptions that occur as part of this process ! * will be thrown. ! * ! * <p>The list of nest members in the classfile is permitted to ! * contain duplicates, or to explicitly include the nest host. It is not ! * required that an implementation of this method removes these duplicates. ! * ! * @implNote This implementation does not remove duplicate nest members if they ! * are present. * * @return an array of all classes and interfaces in the same nest as * this class * * @throws LinkageError if there is any problem loading or validating
< prev index next >