bumzee schrieb:
> Yes, I'm aware of that. Via most IDEs, one can modify java classes and
> reload the changes without restarting the entire application. This simply
> does not worth with groovy based classes. I'm using Resin, but I contacted
> them and they said it's a groovy problem. So I tried it in Tomcat and they
> were right, it doesn't work there either.
>
> Maybe it's not supposed to work, but it's seems a major inconvenience if
> this is true.
so with hotswaping you mean replacing a class at rutime in the VM
wihtout creating a new class... ok, once that is out, why did they say
it won't work for Groovy? Groovy creates classes too. I don't know how
that hotwaping is working and what restrictions it has, so I have no
idea what the problem could be. Afaik something needs to recognize that
we have a nes class file and that needs to be loaded in the VM that is
running in debugging mode. Since we produce oridinary class files there
are only two things that can be wrong... Either the class file version
is too low or the files are not recognized as changed. But I can only
guess. I have no documentation about hotswapping.
[...]
> I have the groovy all jar in my classpath and that's it. I'm using
> intellij, but it is no doubt using groovyc to compile the groovy classes.
that might be, but does it place the class files where you need them?
Does intellij even consider that there is something from Groovy for
hotswapping?
> But when not in the IDE and using Resin, which supports auto reloading of
> modified classes, I have the same problem with groovy classes. It can't
> reload them without restarting the application.
and how do you compile the classes there? You use groovyc?
> Basically, the hotswap feature supported in all java IDEs doesn't work on
> groovy classes. Or so it seems. Just want to know if there is some kind of
> work around and/or if this is a issue being addressed in future versions of
> groovy.
we can try to fix the issue, but we need more data on this
bye blackdrag
PS: please don't be impatient... just because your mail does not show up
right away it does not mean you are forgotten. The mail server is
sometimes a bit slow, because it is sometimes under spam attack.
--
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (
http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/http://www.g2one.com/---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email