Compiling threadLocal objects
Up to The JastAdd Extensible Java Compiler (JastAddJ)
Hi,
I have trouble compiling classes with threadLocal objects. Here is an example
---------------------
private static final Obj myVar = new Obj();
private static ThreadLocal myThreadLocalVar = new ThreadLocal() {
protected Object initialValue() {
return myVar;
}
};
----------------------
JastAdd doesn't generate the auxiliary class files. The (JastAdd) JavaCompiler doesn't complain but when I run the program with java the following error occurs:
------------------------
Exception in thread "main" java.lang.ClassFormatError: Catch type in exception table has bad constant type in class XXX
------------------------
Any ideas?
Cheers, Malte
Powered by
Ploneboard