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

allow Object += String

XMLWordPrintable

    • b25
    • generic
    • solaris_8
    • Not verified

      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?

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: