simple code ExceptionInInitializerError
Marilen Corciovei
marilen.corciovei@nemesisit.ro
Fri Apr 11 03:02:00 GMT 2003
I simplified the code to that:
import java.util.Hashtable;
import java.sql.Date;
public class Main {
public static void main(String[] args) {
Hashtable s = new Hashtable();
s.put(Date.class,new Object());
}
}
I compile it using gcj --main=Main -o test.exe Main.class and
Exception in thread "main" java.lang.ExceptionInInitializerError
at
__ZN3org6apache7commons9beanutils12ConvertUtils6class$$EPN4java4lang6Strin
gE (c:\thisiscool-gcc\examples\reflect\test.jar)
at __ZN3org6apache7commons9beanutils12ConvertUtils10deregisterEv
(c:\thisisco
ol-gcc\examples\reflect\test.jar)
at
__ZN3org6apache7commons9beanutils12ConvertUtils18__U3c_clinit__U3e_Ev
(c:\
thisiscool-gcc\examples\reflect\test.jar)
at
__ZN3org6apache7commons9beanutils12ConvertUtils8register$EPNS2_9ConverterE
PN4java4lang5ClassE (c:\thisiscool-gcc\examples\reflect\test.jar)
at __ZN4Main4mainEP6JArrayIPN4java4lang6StringEE
(c:\thisiscool-gcc\examples\
reflect\test.jar)
at _main (c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGgbaaa.i)
Caused by: java.util.MissingResourceException: Bundle
gnu.java.locale.Calendar n
ot found
at
__ZN3org6apache7commons9beanutils12ConvertUtils6class$$EPN4java4lang6Strin
gE (c:\thisiscool-gcc\examples\reflect\test.jar)
...5 more
Thanks to all for bearing with me,
Len
On Fri, 2003年04月11日 at 01:45, Tom Tromey wrote:
> >>>>> "Marilen" == Marilen Corciovei <marilen.corciovei@nemesisit.ro> writes:
>> Marilen> My question is: how much of reflection is implemented in gcj
> Marilen> or will be implemented in the near future?
>> As far as I know, reflection completely works.
>> Well, there are some known bugs, but they won't affect you. I think
> all the bugs have to do with missing security checks.
>> If reflection isn't working for you, maybe we can try to find out what
> is going on.
>> Tom
Marilen Aretius Corciovei
Technical Manager, Nemesis IT
marilen.corciovei@nemesisit.ro
+40-721253015
More information about the Java
mailing list