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

javac makes String non-backward compatible

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: