Using Eclipse
Version: Juno Service Release 2
Build id: 20130225-0426
def gaeVersion = '1.8.0'
def groovyVersion = '2.1.3'
my code is: ///////////////////
package com.tndegrees.model
import groovyx.gaelyk.datastore.Entity
import groovyx.gaelyk.datastore.Key
import groovyx.gaelyk.datastore.Unindexed
@Entity(unindexed=false)
class Person {
@Key String id
String firstName
String lastName
}
I receive the following error and stacktrace:
General error during semantic analysis: nyi class
org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding java.lang.IllegalStateException: nyi class
org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding at
org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNodeBuilder.configureType(JDTClassNodeBuilder.java:68)
at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.createJDTClassNode(JDTResolver.java:470) at
org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.convertToClassNode(JDTResolver.java:449) at
org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.createExpressionFor(JDTAnnotationNode.java:
179) at
org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.createExpressionFor(JDTAnnotationNode.java:
158) at
org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.ensureMembersInitialized(JDTAnnotationNode.j
ava:143) at
org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.getMember(JDTAnnotationNode.java:67) at
org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.getTransformClassNames(ASTTransforma
tionCollectorCodeVisitor.java:102) at
org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.visitAnnotations(ASTTransformationColle
ctorCodeVisitor.java:212) at
org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:48) at
org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.visitClass(ASTTransformationCollectorCo
deVisitor.java:76) at org.codehaus.groovy.transform.ASTTransformationVisitor
$1.call(ASTTransformationVisitor.java:204) at
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1191) at
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:623) at
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:601) at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:578) at
org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilat
ionUnitDeclaration.java:171) at
org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.resolve(GroovyCompilationUnitD
eclaration.java:2015) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:827) at
org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137) at
java.lang.Thread.run(Thread.java:722)
--
--
You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to: gae...@googlegroups.com
To unsuscribe from this group: gaelyk+un...@googlegroups.com
To show more options: http://groups.google.fr/group/gaelyk?hl=en
---
You received this message because you are subscribed to the Google Groups "Gaelyk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaelyk+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
package com.tndegrees.model
import groovyx.gaelyk.datastore.Entity
import groovyx.gaelyk.datastore.Key
import groovyx.gaelyk.datastore.Unindexed
class Avatar{
String id
URI image
String words
}
does not generate the error but the following does:
package com.tndegrees.model
import groovyx.gaelyk.datastore.Entity
import groovyx.gaelyk.datastore.Key
import groovyx.gaelyk.datastore.Unindexed
@Entity(unindexed=false)
class Avatar{
String id
URI image
String words
}
so it appears to be a conflict on the implementation of the @Entity
This does work with the gaelyk gradle build.