Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 30.51
-
Fix Version/s: 32.53
-
Labels:None
-
Number of attachments :
Description
JavaNCSS fails to parse Class2 in the example below:
public class Class1 {
public <T> T foo()
}
class Class2 extends Class1 {
public <T> T bar()
public <T> T foo()
{ return super.<T>foo(); }}
Note that "this.<T>foo()" seems to be parsed correctly, but "super.<T>foo()" seems to trip the parser:
ParseException in /home/SGLINZ03/jsa/tmp/Class1.java
Last useful checkpoint: "Class2.foo()"
Encountered "<" at line 12, column 18.
Was expecting one of:
"assert" ...
<IDENTIFIER> ...
can you attach a sample code, which compiles but that JavaNCSS fails to parse?