This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
simple code ExceptionInInitializerError
- From: Marilen Corciovei <marilen dot corciovei at nemesisit dot ro>
- To: java at gcc dot gnu dot org
- Cc: tromey at redhat dot com, hans_boehm at hp dot com
- Date: 11 Apr 2003 05:34:55 +0300
- Subject: simple code ExceptionInInitializerError
- Organization:
- References: <1050014908.541.12.camel@prophet> <87u1d6j7ka.fsf@fleche.redhat.com>
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 dot corciovei at nemesisit dot 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 dot corciovei at nemesisit dot ro
+40-721253015