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

rawtype warnings in several net, nio and security source files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 8
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b14
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        The changes to remove warnings from net, nio, and security code missed a few raw types. This was not spotted at the time as the compler was not generating raw type warnings for anonymous inner classes. It does now, see CR 7090499.

        This is not an issue when doing a full build because the classes are compiled implicitly, but when re-building (incrementally building following a clobber in a specific package) then JAVAC_MAX_WARNINGS and JAVAC_WARNINGS_FATAL are set by the appropriate makefile and so the warning is fatal.

        Below are the nio warnings (similar issues in net and security):

        ./../../src/share/classes/java/nio/charset/Charset.java:438: warning: [rawtypes] found raw type: Class
                                Class epc
                                ^
          missing type arguments for generic class Class<T>
          where T is a type-variable:
            T extends Object declared in class Class
        error: warnings found and -Werror specified
        ../../../src/share/classes/sun/nio/ch/Util.java:366: warning: [rawtypes] found raw type: Class
                                    new Class[] { int.class,
                                        ^
          missing type arguments for generic class Class<T>
          where T is a type-variable:
            T extends Object declared in class Class
        ../../../src/share/classes/sun/nio/ch/Util.java:411: warning: [rawtypes] found raw type: Class
                                    new Class[] { int.class,
                                        ^
          missing type arguments for generic class Class<T>
          where T is a type-variable:
            T extends Object declared in class Class
        1 error
        3 warnings
        make381: *** [.compile.classlist] Error 1

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  chegar Chris Hegarty
                  Reporter:
                  chegar Chris Hegarty
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: