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

Incorrect verifier protected access error message

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21

      Backports

        Description

        The verifier throws VerifyError with the following message when it detects an issue with protected access for a getfield or putfield bytecode:

                  verify_error(ErrorContext::bad_type(bci,
                      current_frame->stack_top_ctx(),
                      TypeOrigin::implicit(current_type())),
                      "Bad access to protected data in getfield");

        The bad access could be caused by a putfield. So, the message should not be hardwired to say 'getfield'.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hseigel Harold Seigel
                Reporter:
                hseigel Harold Seigel
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: