You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Santiago Aguiar <sa...@netlabs.com.uy> on 2002/05/08 21:30:49 UTC
Weird trouble accesing static members
I wrote a mailet for james, it loads correctly but when i try to call
a static method of another class that just sets a static variable of
that class, it just hangs (no error message at all)...
the code is like the following:
public class MailetClass extends GenericMailet{
public void init() throws javax.mail.MessagingException
{
MyOtherClass.staticMethod(new ClassX());
}
....
public class MyOtherClass{
public staticMethod(ClassX x){
MyOtherClass.x = x;
}
private static ClassX x;
}
i know that the trouble its while calling staticMethod... and i dont
have problems accessing non-static ones...
All the classes are contained in james.bar (i just added the .class to
james.bar)...
Thanks a lot!
Santiago.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>