Freenet compilation errors.

Mark J. Roberts mjr@statesmean.com
Mon Jan 8 09:44:00 GMT 2001


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /