FW: Compiling using GCJ
Rego, Elton
regoe@cboe.com
Mon Sep 16 13:16:00 GMT 2002
> -----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
>
>
>
>
>
>
More information about the Gcc-help
mailing list