This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Freenet compilation errors.
- To: java-discuss at sources dot redhat dot com
- Subject: Re: Freenet compilation errors.
- From: "Mark J. Roberts" <mjr at statesmean dot com>
- Date: Mon, 8 Jan 2001 11:46:06 -0600 (CST)
Yet another bug:
Bug/Test.java:
package Bug;
public class Test {
public static void main(String[] args) {
System.out.println(Bug.other.OtherClass.number);
}
}
And Bug/other/OtherClass.java:
package Bug.other;
public class OtherClass {
public static int number = 42;
}
It results in:
[root@rm03-24-131-185-22 /freenet]# gcj -o test --main=Bug.Test
Bug/Test.java Bug/other/OtherClass.java
Bug/Test.java: In class `Bug.Test':
Bug/Test.java: In method `main(java.lang.String[])':
Bug/Test.java:7: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
This does not happen if the two classes are in the same package, so it's
probably related to that.
Interestingly, it did not emerge when we did things like:
Key.addKeyType((int)0x0101,Freenet.keys.KHK.class);
but only in:
Key.addKeyType(Freenet.keys.KHK.keyNumber,Freenet.keys.KHK.class);
--
Mark Roberts
mjr@statesmean.com