Bugzilla – Attachment 860 Details for
Bug 1447
JavaParser.g fails to parse generics with wildcard
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Path of issue
file_1447.txt (text/plain), 1.22 KB, created by
Mathieu Féry (MathiusD)
on 2023-08-08 12:07:05 CEST
(
hide
)
Description:
Path of issue
Filename:
MIME Type:
Creator:
Mathieu Féry (MathiusD)
Created:
2023-08-08 12:07:05 CEST
Size:
1.22 KB
patch
obsolete
>feat(generation): Fix generic parsing inside JavaParser.g to allow parsing of java callback implementation >--- >Index: src/antlr/com/jogamp/gluegen/jgram/JavaParser.g >=================================================================== >diff --git a/src/antlr/com/jogamp/gluegen/jgram/JavaParser.g b/src/antlr/com/jogamp/gluegen/jgram/JavaParser.g >--- a/src/antlr/com/jogamp/gluegen/jgram/JavaParser.g (revision f434f6ec0ecba41d3e70afbe7e8bd10a1c071835) >+++ b/src/antlr/com/jogamp/gluegen/jgram/JavaParser.g (revision 36f2c2648d6a494865ae1ecd810a6f1241a01ce2) >@@ -266,7 +266,13 @@ > // A class type specification is a class type with possible brackets afterwards > // (which would make it an array type). > classTypeSpec[boolean addImagNode] >- : identifier (LT gen:classTypeSpec[false] GT)? (lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK!)* >+ : identifier (LT >+ ( >+ classTypeSpec[false] >+ | >+ QUESTION ("extends" classTypeSpec[false] (BAND classTypeSpec[false])*)? >+ ) GT >+ )? (lb:LBRACK^ {#lb.setType(ARRAY_DECLARATOR);} RBRACK!)* > { > if ( addImagNode ) { > #classTypeSpec = #(#[TYPE,"TYPE"], #classTypeSpec);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1447
: 860