simple code ExceptionInInitializerError

Marilen Corciovei
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
gE (c:\thisiscool-gcc\examples\reflect\test.jar)
   at __ZN3org6apache7commons9beanutils12ConvertUtils10deregisterEv
PN4java4lang5ClassE (c:\thisiscool-gcc\examples\reflect\test.jar)
   at __ZN4Main4mainEP6JArrayIPN4java4lang6StringEE
   at _main (c:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ccGgbaaa.i)
Caused by: java.util.MissingResourceException: Bundle n
ot found
gE (c:\thisiscool-gcc\examples\reflect\test.jar)
   ...5 more

Thanks to all for bearing with me,

On Fri, 2003-04-11 at 01:45, Tom Tromey wrote:
> >>>>> "Marilen" == Marilen Corciovei <> 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

More information about the Java mailing list