Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.1-beta-1, 1.1-beta-2, 1.1-beta-3, 1.1-rc-1
-
None
-
None
-
Tomcat 5.5, java 1.5
Description
I create a testing project on tomcat. calling the groovy object from a groovy page. After the tomcat start, I add a new method to the groovy object, and call the new method from the groovy page. The thing work under the groovy 1.0, but failed under groovy 1.1-b3 or rc1. groovy 1.1 throw out a exception, telling me Script processing failed. No signature of methodDo the class invoking is this cause by the mechanism change between 1.1 and 1.0? or I make a fault in my code?
My testing project project structure like this:
/webpages test.groovy /WEB-INF /groovy /ABC.groovy
I just simply call the ABC from the test.groovy. The first time I code like this, and start tomcat. everything work great.
test.groovy
def abc = new ABC()
out << abc.say()
ABC.groovy
class ABC{ def say() { return "hello" } }
And later I add a method call newSay() to ABC, and then call it from test.groovy without reboot Tomcat, Ok under groovy 1.0 but fail under 1.1. Without reboot Tomcat is the reason I try to use groovy. If reboot required, where is the dynamic?
test.groovy
def abc = new ABC()
out << abc.say()
out << abc.newSay()
ABC.groovy
class ABC{ def say() { return "hello" } def newSay() { return "new hello" } }
Attachments
Issue Links
- relates to
-
GROOVY-3702 Groovlet: depending groovy files are not recompiled
- Closed