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

[lworld] Value construction modalities in class file

    XMLWordPrintable

    Details

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

      Description

      ATM, javac translates code in constructors in value classes into a factory method called $makeValue$ and produces a stubbed out method <init> that merely calls the super constructor (to please the verifier and also to please certain phases javac that operate on <init> methods, stubs are retained)

      All construction sites are also translated into a static factory call.

      This ticket is to implement the final version of this scheme.

        Attachments

        1. CheckcastTest.jtr
          13 kB
          Harold Seigel
        2. TestLWorld.java
          4 kB
          Harold Seigel

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: