-
Notifications
You must be signed in to change notification settings - Fork 68
8278834: Error "Cannot read field "sym" because "this.lvar[od]" is null" when compiling #110
Conversation
…ll" when compiling
👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks sensible
@lahodaj This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
/integrate |
For code like:
javac
crashes with:The cause is in
TransPatterns
- it tracks the current class and method, so that it can define correct owners for temporary variables. But if there's a class nested in a method, the current method field is not cleared, and consequently the temporary variables get a wrong owner (the method enclosing the class, not a method inside the current class), which then crashes subsequent phases, like Gen.The proposed fix is to clear
currentMethod
when entering a class AST node.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk18 pull/110/head:pull/110
$ git checkout pull/110
Update a local copy of the PR:
$ git checkout pull/110
$ git pull https://git.openjdk.java.net/jdk18 pull/110/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 110
View PR using the GUI difftool:
$ git pr show -t 110
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk18/pull/110.diff