forked from INRIA/spoon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(noclasspath): Handle type resolution of anonymous class with unre…
…solved constructor (INRIA#3971)
- Loading branch information
1 parent
7f36659
commit 05e2f88
Showing
3 changed files
with
41 additions
and
1 deletion.
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
12 changes: 12 additions & 0 deletions
12
src/test/resources/noclasspath/BadAnonymousClassOfNestedType.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
Test source file to reproduce the behavior reported in https://github.com/INRIA/spoon/issues/3913 | ||
*/ | ||
public final class BadAnonymousClassOfNestedType<K, V> { | ||
public void test() { | ||
new BadAnonymousClassOfNestedType.GenericType<K, V>(this) { | ||
}; | ||
} | ||
|
||
static class GenericType<K, V> { | ||
} | ||
} |