-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[javac] Have a
convertType
method which returns the created Type. C…
…allers are then responsible for adding it to the appropriate list. Types are added as follows - Top level types: Added to compilation unit - Nested types: Added to parent type - Local types: Added as a LocalClassDeclarationStatement - Anonymous types: Added as the NewInstance.anonymousInnerClass Fixes this error: RestoreVariableScoping expects the inline anonymous type to be in the `NewInstance.getAnonymousInnerClass`. Because `convertAndAddType` always returned null and instead added the type to the `CompilationUnit`, the pass could not find the relevant scope and throws NPE. Relevant: 47a8809 PiperOrigin-RevId: 693478297
- Loading branch information
1 parent
c671610
commit 9683a28
Showing
1 changed file
with
22 additions
and
29 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