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

javac makes String non-backward compatible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • tools
    • tiger
    • generic
    • solaris_8

      See 4810933 for a description of a minor incompatibility introduced
      when generics are enabled. The test test/java/lang/String/Exceptions.java
      runs afoul of that by virtue of containing the code

         "foo".compareTo((Object) null);

      The suggested change is to either (1) force compilation with -source 1.4,
      or (2) remove the cast to Object.

      ==========================

      On second thought, the default compiler options include -source 1.4.
      This is therefore a compiler bug.

      ###@###.### 2003-03-10

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: