boink! public class ClassIndex implements Comparable { static final ClassIndex x = new ClassIndex (); public int compareTo (Object o) { return 0; } public static void main (String[] args) { System.out.println (ClassIndex.x); byte[] b = new byte[ClassIndex.x]; System.out.println ("Array length: " + b.length); } }
Index: frysk-imports/tests/ChangeLog 2006-05-02 Andrew Cagney <cagney@redhat.com> * Makefile.am (frysk2630/noerror.sh, frysk2631/ice.sh): Add rules. * frysk2630/ClassIndex.java: New. * frysk2631/EnumClass.java: New. * frysk2631/ClassSwitch.java: New.
Pushed upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27399
Fixed upstream, but waiting for: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=231020