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

Incorrect verifier protected access error message

XMLWordPrintable

    • b21

        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'.

              hseigel Harold Seigel (Inactive)
              hseigel Harold Seigel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: