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

allow Object += String

    XMLWordPrintable

Details

    • b25
    • generic
    • solaris_8
    • Not verified

    Description

      javac used to allow expressions of the form

      o += s

      where o is a variable of type Object and s is an expression of type String.
      We fixed that recently (4642850) and this caused a build failure (4741702).
      Perhaps this is common enough that we should relax the spec instead of
      fixing the compiler?

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: