* FW: Compiling using GCJ
@ 2002-09-16 13:16 Rego, Elton
0 siblings, 0 replies; only message in thread
From: Rego, Elton @ 2002-09-16 13:16 UTC (permalink / raw)
To: 'gcc-help@gcc.gnu.org'
> -----Original Message-----
> From: Rego, Elton
> Sent: Wednesday, August 21, 2002 2:36 PM
> To: 'gnu@gnu.org'
> Subject: Compiling using GCJ
>
> Hello there !
>
> I am in the process of trying your GCJ compiler for a new Java
> application which we are building. When I try to compile the source file
> MsgGenerator.java I get an error
>
> junit/framework/TestSuite.java:0:bad class index 0
>
> In my application I am using junit framwork as unit testing tool and I am
> importing framwork classes using import statement. The source code
> structure is as follows:
>
> import junit.framework.*;
> import ....
> import ....
>
>
> public class MsgGenerator extends TestCase
> {
>
> ....
> ....
>
> public MsgGenerator (java.lang.String testName)
> {
> super(testName);
> }
>
> public static void main(java.lang.String[] args)
> {
> junit.textui.TestRunner.run(MsgGenerator.class);
> }
>
> Then I have various methods
> ....
>
> ...
>
> And finally a public static method suite()
>
> public static Test suite()
> {
> TestSuite suite = new TestSuite(MsgGenerator.class);
> return suite;
> }
>
> }
>
>
> When I compile using
> gcj -C test/com/cboe/copp/systemTest/MsgGenerator.java
>
> I get the error
> junit/framework/TestSuite.java:0: bad class index 0
>
>
> I have a feeling it might be with something to do with Reflection....
>
> Can anyone help me on this? Why bad class index?????
>
>
>
> Thanks,
>
> Elton
>
>
>
>
>
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-16 20:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-16 13:16 FW: Compiling using GCJ Rego, Elton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).