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

[lworld] new and defaultvalue don't perform checks on class to instantiate

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • repo-valhalla
    • None
    • hotspot

    Description

      The lworld specification stipulates that:
        - if a value class is used as argument for a new bytecode, this instruction must throw an InstantiationError
        - if an identity class us used as argument for a defaultvalue bytecode, this instruction must throw an IncompatibleClassChangeError

      None of these bytecodes currently implement these checks.

      Attachments

        Issue Links

          Activity

            People

              fparain Frederic Parain
              fparain Frederic Parain
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: