Calling an enum value ‘boolean’ like this:

enum QuestionType {
  boolean("Boolean")
}

produces the following compiler errors when building the WebDSL application:

run-eclipse-build:
   [javac] /Users/gohla/Spoofax/Eclipse-3.8-WebDSL/plugins/webdsl.editor_1.2.9.201302110700/webdsl-template/webdsl-build-eclipse.xml:291: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
   [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
   [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
   [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
   [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
   [javac] Compiling 4 source files to /Users/gohla/Spoofax/Workspaces/LWC/QLExample/WebContent/WEB-INF/classes
   [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
   [javac] invalid Class-Path header in manifest of jar file: /Users/gohla/Spoofax/Workspaces/LWC/QLExample/WebContent/WEB-INF/lib/uncommons-maths-1.2.jar
   [javac] ----------
   [javac] 1. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalInit.java (at line 17)
   [javac] 	private static webdsl.generated.domain.QuestionType boolean = null;
   [javac] 	                                                    ^^^^^^^
   [javac] Syntax error on token "boolean", invalid VariableDeclaratorId
   [javac] ----------
   [javac] 2. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalInit.java (at line 83)
   [javac] 	boolean = GlobalVariables.getBoolean(utils.HibernateUtil.getCurrentSession());
   [javac] 	^^^^^^^
   [javac] Syntax error on token "boolean", VariableDeclaratorId expected after this token
   [javac] ----------
   [javac] 3. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalInit.java (at line 84)
   [javac] 	env.putVariable("boolean", boolean);
   [javac] 	                           ^^^^^^^
   [javac] Syntax error on token "boolean", invalid Expression
   [javac] ----------
   [javac] ----------
   [javac] 4. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 33)
   [javac] 	webdsl.generated.domain.QuestionType boolean = (webdsl.generated.domain.QuestionType)hibSession.load(webdsl.generated.domain.QuestionType.class, booleanId);
   [javac] 	                                     ^^^^^^^
   [javac] Syntax error on token "boolean", delete this token
   [javac] ----------
   [javac] 5. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 34)
   [javac] 	return boolean;
   [javac] 	       ^^^^^^^
   [javac] Syntax error on token "boolean", delete this token
   [javac] ----------
   [javac] 6. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 64)
   [javac] 	private static webdsl.generated.domain.QuestionType boolean = null;
   [javac] 	                                                    ^^^^^^^
   [javac] Syntax error on token "boolean", invalid VariableDeclaratorId
   [javac] ----------
   [javac] 7. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 70)
   [javac] 	boolean = webdsl.generated.functions.enum_QuestionType_objCr3_.enum_QuestionType_objCr3_();
   [javac] 	^^^^^^^
   [javac] Syntax error on token "boolean", VariableDeclaratorId expected after this token
   [javac] ----------
   [javac] 8. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 80)
   [javac] 	utils.HibernateUtil.getCurrentSession().save(boolean);
   [javac] 	                                             ^^^^^^^
   [javac] Syntax error on token "boolean", delete this token
   [javac] ----------
   [javac] 9. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 83)
   [javac] 	id5.setDatabaseId(boolean.getId());
   [javac] 	                  ^^^^^^^
   [javac] Syntax error on token "boolean", invalid Expression
   [javac] ----------
   [javac] 10. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 86)
   [javac] 	boolean.setVersion(1);
   [javac] 	^^^^^^^
   [javac] Syntax error on token "boolean", invalid Expression
   [javac] ----------
   [javac] 11. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 88)
   [javac] 	boolean = null;
   [javac] 	^^^^^^^
   [javac] Syntax error on token "boolean", VariableDeclaratorId expected after this token
   [javac] ----------
   [javac] 12. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 116)
   [javac] 	boolean = new webdsl.generated.domain.QuestionType();
   [javac] 	^^^^^^^
   [javac] Syntax error on token "boolean", VariableDeclaratorId expected after this token
   [javac] ----------
   [javac] 13. ERROR in /Users/gohla/Spoofax/Workspaces/LWC/QLExample/.servletapp/src-generated/utils/GlobalVariables.java (at line 132)
   [javac] 	env.putVariable("boolean", boolean);
   [javac] 	                           ^^^^^^^
   [javac] Syntax error on token "boolean", invalid Expression
   [javac] ----------
   [javac] 13 problems (13 errors)

BUILD FAILED
/Users/gohla/Spoofax/Workspaces/LWC/QLExample/build.xml:12: The following error occurred while executing this line:
/Users/gohla/Spoofax/Eclipse-3.8-WebDSL/plugins/webdsl.editor_1.2.9.201302110700/webdsl-template/webdsl-build-eclipse.xml:122: The following error occurred while executing this line:
/Users/gohla/Spoofax/Eclipse-3.8-WebDSL/plugins/webdsl.editor_1.2.9.201302110700/webdsl-template/webdsl-build-eclipse.xml:291: Compile failed; see the compiler error output for details.
Submitted by Gabriël Konat on 11 February 2013 at 11:57

Log in to post comments