-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve null def access error message (#69226)
This change adds a checkNull method that will check any def reference when accessed for null. If the def reference is null it throws a more descriptive error message with the name of the method/field that is accessed. For the megamorphic cache, we use the checkNull as the filter instead of just getClass when looking up if we need to compute a new MethodHandle for a changed type. Fixes: #53129
- Loading branch information
Showing
2 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters