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

allow Object += String

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 7
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      generic
    • OS:
      solaris_8
    • Verification:
      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: