Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8024601

Windows networking code prevents use of -Xlint:auxiliaryclass in jdk build

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • b108
    • x86
    • windows

    Description

      Some windows-specific java code contains conditions flagged by the javac -Xlint:auxiliaryclass flag, preventing that flag from being used in the build of the jdk repo:

      c:\jprt\T\P1\233622.juh\s\jdk\src\windows\classes\java\net\DualStackPlainSocketImpl.java:224: warning: auxiliary class InetAddressContainer in c:\jprt\T\P1\233622.juh\s\jdk\src\share\classes\java\net\AbstractPlainSocketImpl.java should not be accessed from outside its own source file
                  localAddress(nativefd, (InetAddressContainer)iaContainerObj);
                                          ^
      c:\jprt\T\P1\233622.juh\s\jdk\src\windows\classes\java\net\TwoStacksPlainSocketImpl.java:125: warning: auxiliary class InetAddressContainer in c:\jprt\T\P1\233622.juh\s\jdk\src\share\classes\java\net\AbstractPlainSocketImpl.java should not be accessed from outside its own source file
                  InetAddressContainer in = new InetAddressContainer();
                  ^
      c:\jprt\T\P1\233622.juh\s\jdk\src\windows\classes\java\net\TwoStacksPlainSocketImpl.java:125: warning: auxiliary class InetAddressContainer in c:\jprt\T\P1\233622.juh\s\jdk\src\share\classes\java\net\AbstractPlainSocketImpl.java should not be accessed from outside its own source file
                  InetAddressContainer in = new InetAddressContainer();
                                                ^

      These warning categories should be cleared in this code so the entire jdk repo can be protected by these javac checks.

      See related build-dev thread:
          http://mail.openjdk.java.net/pipermail/build-dev/2013-August/009795.html
          http://mail.openjdk.java.net/pipermail/build-dev/2013-September/010050.html

      Attachments

        Issue Links

          Activity

            People

              michaelm Michael McMahon
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: