lin q
2012-11-30 21:46:57 UTC
Hi,
I try to use antlrworks to try out some grammar, but when I click the
"debug" button, I get error:
[13:39:44] 1. ERROR in test/output/QParser.java (at line 10)
[13:39:44] @SuppressWarnings({"all", "warnings", "unchecked"})
[13:39:44] ^^^^^^^^^^^^^^^^^
[13:39:44] Syntax error, annotations are only available if source level is
5.0
If I run javac at command line, I found that adding "-1.5" gets rid of the
error, but how can I configure antlrworks so that its javac can take this
"-1.5" option? I only see it allows using different javac executable.
BTW, any idea what is this error? I am using the latest Java SDK.
Thanks.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
I try to use antlrworks to try out some grammar, but when I click the
"debug" button, I get error:
[13:39:44] 1. ERROR in test/output/QParser.java (at line 10)
[13:39:44] @SuppressWarnings({"all", "warnings", "unchecked"})
[13:39:44] ^^^^^^^^^^^^^^^^^
[13:39:44] Syntax error, annotations are only available if source level is
5.0
If I run javac at command line, I found that adding "-1.5" gets rid of the
error, but how can I configure antlrworks so that its javac can take this
"-1.5" option? I only see it allows using different javac executable.
BTW, any idea what is this error? I am using the latest Java SDK.
Thanks.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address