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

Incorrect verifier protected access error message

    XMLWordPrintable

Details

    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: