Java files happening to define more than one top level "normal" classes (i.e., other than an enum declaration) then the import aborts with following error:
**Severe error on importing file "<file_path>":
java.lang.ClassCastException: class lu.fisch.structorizer.elements.Instruction cannot be cast to class lu.fisch.structorizer.elements.Forever (lu.fisch.structorizer.elements.Instruction and lu.fisch.structorizer.elements.Forever are in unnamed module of loader 'app')
The Java Parser relied on the wrong assumption (though expected good style) that a Java file contains exactly one class definition on top level (inner classes reserved).
Java files happening to define more than one top level "normal" classes (i.e., other than an
enum
declaration) then the import aborts with following error:The Java Parser relied on the wrong assumption (though expected good style) that a Java file contains exactly one class definition on top level (inner classes reserved).