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

[lworld] Allow updates to instance fields of value types via withfield by any method in the same nest

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      See bottom most para in http://mail.openjdk.java.net/pipermail/valhalla-dev/2018-February/003803.html

      ATM, javac allows only a static method flagged as a value factory to update instance fields of a value type - which operations don't really update an existing instances fields but implement copy on write semantics by virtue of code generation using withfield opcode.

      This ticket is to eliminate the static value factory mechanism altogether and allow any method in the same nest to perform the withfield operation.

        Attachments

          Activity

            People

            • Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              sadayapalam Srikanth Adayapalam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: