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

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

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: