[Bug java/13022] [3.4 Regression] GCJ crashes during compilation of included sample

rmerkert at alphatech dot com gcc-bugzilla@gcc.gnu.org
Wed Dec 31 03:24:00 GMT 2003


------- Additional Comments From rmerkert at alphatech dot com  2003-12-31 01:08 -------
I've tried to reduce this problem somewhat. The problem is basically that it gcj
cannot find the classes from org.apache.regexp.RE.

Here's a simpler version. Create two files A.java and /tmp/B.java


cat > A.java <<EOF
public class A
{
    public static void a()
    {
        B x=null;
        x.b();
    }
}
EOF
cat > /tmp/B.java <<EOF
public class B
{
    public static void b()
    {
    }
}
EOF
gcj -C -classpath .:/tmp A.java
gcj -c A.class


It seems to be necessary to call "B.b()", but doing "new B()" produces an error
message.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13022



More information about the Gcc-bugs mailing list