[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] Why I'm getting
From: Stephane Eybert <mittiprovence () yahoo ! se>
Date: 2009-09-30 12:43:34
Message-ID: 25680274.post () talk ! nabble ! com
[Download RAW message or body]
I got the point.
So why do I have the same error message for that class file ?
class DateTagLib {
static namespace = 'date'
def thisYear = {
out << Calendar.getInstance().get(Calendar.YEAR)
}
def copyright = { attrs, body ->
out << "<div id='copyright'>"
out << "© ${attrs['startYear']} - ${thisYear()}, ${body()}"
out << " All Rights Reserved."
out << "</div>"
}
}
Is it due to the use of static ?
Here is the error message I get :
Exception in thread "Thread-48"
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed, DateTagLib: 5: Invalid duplicate class definition of class
DateTagLib : The source DateTagLib contains at least two defintions of the
class DateTagLib.
One of the classes is a explicit generated class using the class statement,
the other is a class generated from the script body based on the file name.
Solutions are to change the file name or to change the class name.
--
View this message in context: \
http://www.nabble.com/Why-I%27m-getting-MultipleCompilationErrorsException-exception--tp21525418p25680274.html
Sent from the groovy - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic