Jochen,
I tried again downloading groovy from SVN repo, rebuilding it and I get the
same error mentionned before when testing Annotations. Note that I am trying
the dynamic compilation of groovy class file. groovyc does work.
Also surprisingly groovyc gives me version:
groovy compiler version 1.0-rc1
Copyright 2003-2004 The Codehaus.
http://groovy.codehaus.org/while groovy version is:
Groovy Version: 1.0.1-SNAPSHOT JVM: 1.5.0_08-b03
Might just be an oversight.
Thanks
Pascal
On Tuesday 23 January 2007 10:23, Jochen Theodorou wrote:
> Pascal DeMilly schrieb:
> > I am trying to use Hibernate annotation in a groovy script but I am
> > getting anerror
> >
> > org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
> > failed, crs/business/cashreg/CashRegTill.groovy: 8: unexpected token:
> > class @ line 8, column 1.
> > class CashRegTill {
> >
> > The groovy file is:
> > package crs.business.cashreg;
> >
> > import javax.persistence.Entity
> > import javax.persistence.Table
> >
> > @Entity
> > @Table(name="CashRegTills")
> > class CashRegTill {
> > }
> >
> > I am using Groovy Version: 1.0.1-SNAPSHOT JVM: 1.5.0_08-b03 from
> > yesterday.
> >
> > What am I missing?
>
> are you absolutly sure? The parser walks through here. please update
> again, clean the build, rebuild and try again
>
> bye blackdag