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

Undocumented exception thrown by Instruction factory methods accepting Opcode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • core-libs

      OperatorInstruction.of(Opcode opcode) for opcode that is not of Opcode.kind.Operator throws an IAE as naturally expected. But this is not documented.

      Also
      NewPrimitiveArrayInstruction.of(TypeKind typeKind);
      doesn't throw any exceptions but it should if typeKind is not the right type

            asotona Adam Sotona
            pchinnasamy Prabushankar Chinnasamy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: