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> ...
Activity
Joachim Sauer
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | Class1.java [ 42192 ] |
Sébastien Reynaud
made changes -
| Attachment | JAVANCSS-17_patch.diff [ 42272 ] |
Herve Boutemy
made changes -
| Assignee | Herve Boutemy [ hboutemy ] | |
| Fix Version/s | 31.53 [ 15310 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
can you attach a sample code, which compiles but that JavaNCSS fails to parse?