We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this code will cause the error import java.util.Map;; import java.util.Map;
import java.util.Map;; import java.util.Map;
The text was updated successfully, but these errors were encountered:
Can you be more specific? That is not the source code for a valid .java file.
.java
Sorry, something went wrong.
import test1;; import test2; public class HelloWorld { public static void main(String[] args){ System.out.println("Hello World!"); } }
The problem seema to be that compilationunit accepts no empty statements. The same would happen for code such as
package foo;;
Curiosly, TypeDeclaration allows for empty statements, but the generated ast makes no sense
public class Foo {};
Produces a compilationunit with 2 type declarations, one for foo and one for ; completely empty.
We should probably remove this hack altogether and make sure empty statements can be parsed everywhere and produces a proper ast.
Seems like the eclipse compiler doesn't like the empty statements, too - however javac allows this.
javac
4e72eef
adangel
No branches or pull requests
this code will cause the error
import java.util.Map;; import java.util.Map;
The text was updated successfully, but these errors were encountered: