Undocumented exception thrown by Instruction factory methods accepting Opcode

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: 23
    • Component/s: 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

            Assignee:
            Adam Sotona
            Reporter:
            Prabushankar Chinnasamy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: