This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Freenet compilation errors.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]