Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Using an enumeration with @DataElement causes errors until mvn build is run #451

Closed
jayjaybillings opened this issue Aug 3, 2020 · 3 comments
Assignees

Comments

@jayjaybillings
Copy link
Member

Declaring an enumeration for the first time in a spec like this in Person.java

	/**
	 * Basic enumeration example. Note that the fully qualified value name needs
	 * to be added and the first time the enumeration is used the build needs
	 * to be run.
	 */
	@DataField.Default(value="org.eclipse.ice.renderer.PersonEnum.TALL");
	@DataField public PersonEnum height;

causes the following errors in Eclipse:

Multiple markers at this line
	- Syntax error, insert "enum Identifier" to complete 
	 EnumHeaderName
	- Syntax error, insert "EnumBody" to complete EnumDeclaration

This appear to resolve after a Maven build.

@dbluhm
Copy link

dbluhm commented Aug 7, 2020

This may have been solved by #454 but not positive. I'll see if I can reproduce the problem with those changes merged.

@dbluhm
Copy link

dbluhm commented Sep 2, 2020

Ran into this again, did a little more research and found this: jbosstools/m2e-apt#64

Not sure it's the exact issue but I still haven't found a way to mitigate the problem other than just running maven.

@jayjaybillings
Copy link
Member Author

Let's consider it fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants