Open codemanyak opened 8 months ago
An apparently obvious approach to update the grammar caused normal object instantiation with type parameters to fail instead, which seems worse.
There is no simple solution at hand (except that the preprocessor would simply delete the class path prefix), but the occurrence of qualified new operators seems unlikely enough to leave it as is.
For see 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:A grammar modification will be necessary to solve this problem.