warning: auxiliary class hdr in .../InternetHeaders.java should not be accessed from outside its own source file

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: xml
    • None

      I get this warning when compiling the JDK:

      /home/aioobe/work/oracle/repo/dev/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/MimeBodyPart.java:1044: warning: auxiliary class hdr in /home/aioobe/work/oracle/repo/dev/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/InternetHeaders.java should not be accessed from outside its own source file
          public FinalArrayList<hdr> getAllHeaders() {
                                ^
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      1 warning

      I suggest moving the "hdr" class to a separate source file (and change the name of the class to something starting with an upper case, like Hdr).

            Assignee:
            Zheng Jun Li (Inactive)
            Reporter:
            Andreas Lundblad (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified