Auxiliary class warnings?

David Holmes david.holmes at oracle.com
Fri Nov 9 18:36:45 PST 2012


I now see a lot of warnings in the build like so:

/java/embedded/users/dh198349/build-infra/jdk/make/tools/src/build/tools/generatenimbus/SynthModel.java:207: 
Note: auxiliary class Rectangle in 
/java/embedded/users/dh198349/build-infra/jdk/make/tools/src/build/tools/generatenimbus/Shape.java 
should not be accessed from outside its own source file
         @XmlElement(name = "rectangle", type = Rectangle.class)
                                                ^
This seems to be due to Fredrik's javac enhancement for 
-Xlint:auxiliaryclass

Is there some reason this is turned on by default?

Aside: the Note is completely inappropriate as there are no Java 
language violations of any kind occurring. It should say "is being 
accessed" not "should not be accessed".

David




More information about the build-infra-dev mailing list