-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
For the instantiation of nested static classes a qualified new operator may be needed (see e.g. https://stackoverflow.com/questions/2863157/how-does-object_new-work-does-java-have-a-new-operator).
If the Java parser bumps into such a qualified new operator it fails inevitably:
error.syntax in file "D:\SW-Produkte\Structorizer\tests\Issue1132_Java_import\parsers\COBOLParser.java"
Preceding source context:
5762: {
5763: // START KGU#537 2018-07-01: Enh. #553
5764: checkCancelled();
5765: // END KGU#537 2018-07-01
5766: if (_reduction.isEmpty()) {
5767: return;
5768: }
5769:
5770: // create a dummy-program because we may have only a partial source that doesn't start with
+ program definition
5771: if (currentProg == null) {
5772: currentProg = cobTools.» new CobProg(STRUCTORIZER_PARTIAL, null, false, null);
Found token new
Expected: Identifier
A grammar modification will be necessary to solve this problem.