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

rawtype warnings in several net, nio and security source files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7
    • other-libs
    • b14
    • generic
    • generic
    • Not verified

        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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: