yuanji
Apr 23rd, 2011, 11:39 AM
I'm not sure it is only me or anyone else has the same problem.
I downloaded Spring Data Graph Neo4J Hello World example and successfully imported to STS 2.6.0.SR1. The Maven build and Junit Tests are all OK in STS, and if open World.java in editor, I got compiler error mark at line 26:
Type mismatch : cannot convert from Class<World> to Class<? extends NodeBacked>
And there is a red line under "World.class".
Same compiler error at line 57 for "relateTo".
But no error mark at file icon in Package Explorer view and no error in Problems view. If I right click this file and select "Validate", it reports "The validation completed with no errors or warnings."
I tried to clean up, and tried in STS 2.6.0.RELEASE, created my own test project, always the same compiler error mark in Java Editor. I can still test, run and continue development, just feel annoying to see those error marks.
In AJDT Event Trace view, I can see those messages:
...
10:14:10 addSourcelineTask message=advice defined in org.springframework.data.graph.neo4j.support.relat ionship.Neo4jRelationshipBacking has not been applied [Xlint:adviceDidNotMatch] file=C:\Users\Yuan\.m2\repository\org\springframew ork\data\spring-data-neo4j\1.0.0.RELEASE\spring-data-neo4j-1.0.0.RELEASE.jar!org\springframework\data\graph\n eo4j\support\relationship\Neo4jRelationshipBacking .class line=130
10:14:10 addSourcelineTask message=advice defined in org.springframework.data.graph.neo4j.support.relat ionship.Neo4jRelationshipBacking has not been applied [Xlint:adviceDidNotMatch] file=C:\Users\Yuan\.m2\repository\org\springframew ork\data\spring-data-neo4j\1.0.0.RELEASE\spring-data-neo4j-1.0.0.RELEASE.jar!org\springframework\data\graph\n eo4j\support\relationship\Neo4jRelationshipBacking .class line=137
10:14:10 AspectJ reports build successful, build was: FULL
10:14:10 AJDE Callback: finish. Was full build: true
I googled [Xlint:adviceDidNotMatch], and found Andy Clement mentioned that here http://aspectj.2085585.n4.nabble.com/AJDT-bug-td2085505.html
Couldn't find the bug report in Eclipse Bugzilla, so not sure if it has been resolved or not. Any help?
Thanks,
Yuan
I downloaded Spring Data Graph Neo4J Hello World example and successfully imported to STS 2.6.0.SR1. The Maven build and Junit Tests are all OK in STS, and if open World.java in editor, I got compiler error mark at line 26:
Type mismatch : cannot convert from Class<World> to Class<? extends NodeBacked>
And there is a red line under "World.class".
Same compiler error at line 57 for "relateTo".
But no error mark at file icon in Package Explorer view and no error in Problems view. If I right click this file and select "Validate", it reports "The validation completed with no errors or warnings."
I tried to clean up, and tried in STS 2.6.0.RELEASE, created my own test project, always the same compiler error mark in Java Editor. I can still test, run and continue development, just feel annoying to see those error marks.
In AJDT Event Trace view, I can see those messages:
...
10:14:10 addSourcelineTask message=advice defined in org.springframework.data.graph.neo4j.support.relat ionship.Neo4jRelationshipBacking has not been applied [Xlint:adviceDidNotMatch] file=C:\Users\Yuan\.m2\repository\org\springframew ork\data\spring-data-neo4j\1.0.0.RELEASE\spring-data-neo4j-1.0.0.RELEASE.jar!org\springframework\data\graph\n eo4j\support\relationship\Neo4jRelationshipBacking .class line=130
10:14:10 addSourcelineTask message=advice defined in org.springframework.data.graph.neo4j.support.relat ionship.Neo4jRelationshipBacking has not been applied [Xlint:adviceDidNotMatch] file=C:\Users\Yuan\.m2\repository\org\springframew ork\data\spring-data-neo4j\1.0.0.RELEASE\spring-data-neo4j-1.0.0.RELEASE.jar!org\springframework\data\graph\n eo4j\support\relationship\Neo4jRelationshipBacking .class line=137
10:14:10 AspectJ reports build successful, build was: FULL
10:14:10 AJDE Callback: finish. Was full build: true
I googled [Xlint:adviceDidNotMatch], and found Andy Clement mentioned that here http://aspectj.2085585.n4.nabble.com/AJDT-bug-td2085505.html
Couldn't find the bug report in Eclipse Bugzilla, so not sure if it has been resolved or not. Any help?
Thanks,
Yuan