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

test/java/lang/String/Exceptions.java fails to compile when generics are enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • core-libs
    • None
    • tiger
    • generic
    • generic

      Outstanding issues described in javac compiler bug 4830291 and generics
      specification bug 4810933 cause the following regression test to fail to
      compile.

      /v/ws/auto/tiger/test/java/lang/String/Exceptions.java:348: compiler message file broken: key=compiler.err.cant.apply.symbol.1 arguments=compareTo(java.lang.String), java.lang.String, java.lang.Object, , null, null, null
                          "foo".compareTo((Object) null);
                          ^
      Note: /v/ws/auto/tiger/test/java/lang/String/Exceptions.java uses or overrides a deprecated API.
      Note: Recompile with -deprecation for details.
      1 error
      result: Failed. Compilation failed

      -- iag@sfbay 2003-03-14

            iris Iris Clark
            iris Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: