-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1512 from thk123/bugfix/TG-1058/crash-inner-class…
…-generic-class [TG-1058] Fixes parsing errors relating inner classes on generic classes
- Loading branch information
Showing
11 changed files
with
1,697 additions
and
148 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file added
BIN
+500 Bytes
unit/java_bytecode/java_bytecode_parse_generics/GenericClass$InnerClass.class
Binary file not shown.
Binary file not shown.
109 changes: 109 additions & 0 deletions
109
unit/java_bytecode/java_bytecode_parse_generics/GenericClass.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,109 @@ | ||
public class GenericClass<T> | ||
{ | ||
class InnerClass | ||
{ | ||
} | ||
|
||
class GenericInnerClass<V> | ||
{ | ||
V field; | ||
|
||
class DoublyNestedInnerClass | ||
{ | ||
|
||
} | ||
|
||
class DoublyNestedInnerGenericClass<U> | ||
{ | ||
T field; | ||
} | ||
} | ||
|
||
class SameGenericParamInnerClass<T> | ||
{ | ||
T field; | ||
} | ||
|
||
InnerClass field; | ||
GenericInnerClass<Foo> field2; | ||
GenericInnerClass<T> field3; | ||
|
||
GenericInnerClass<Foo>.DoublyNestedInnerClass field4; | ||
GenericInnerClass<T>.DoublyNestedInnerClass field5; | ||
|
||
GenericInnerClass<Foo>.DoublyNestedInnerGenericClass<Foo> field6; | ||
GenericInnerClass<T>.DoublyNestedInnerGenericClass<T> field7; | ||
|
||
void method(InnerClass input) | ||
{ | ||
|
||
} | ||
|
||
void method2(InnerClass input, InnerClass input2) | ||
{ | ||
|
||
} | ||
|
||
|
||
void method3(GenericInnerClass<Foo> input) | ||
{ | ||
|
||
} | ||
|
||
void method4(GenericInnerClass<T> input) | ||
{ | ||
|
||
} | ||
|
||
void method5(GenericInnerClass<Foo>.DoublyNestedInnerClass input) | ||
{ | ||
|
||
} | ||
|
||
void method6(GenericInnerClass<T>.DoublyNestedInnerClass input) | ||
{ | ||
|
||
} | ||
|
||
void method7(GenericInnerClass<Foo>.DoublyNestedInnerGenericClass<Foo> input) | ||
{ | ||
|
||
} | ||
|
||
void method8(GenericInnerClass<T>.DoublyNestedInnerGenericClass<T> input) | ||
{ | ||
|
||
} | ||
|
||
InnerClass ret_method1() | ||
{ | ||
return null; | ||
} | ||
|
||
GenericInnerClass<Foo> ret_method2() | ||
{ | ||
return null; | ||
} | ||
|
||
GenericInnerClass<T> ret_method3() | ||
{ | ||
return null; | ||
} | ||
|
||
GenericInnerClass<Foo>.DoublyNestedInnerClass ret_method4() | ||
{ | ||
return null; | ||
} | ||
GenericInnerClass<T>.DoublyNestedInnerClass ret_method5() | ||
{ | ||
return null; | ||
} | ||
GenericInnerClass<Foo>.DoublyNestedInnerGenericClass<Foo> ret_method6() | ||
{ | ||
return null; | ||
} | ||
GenericInnerClass<T>.DoublyNestedInnerGenericClass<T> ret_method7() | ||
{ | ||
return null; | ||
} | ||
} |
Oops, something went wrong.