[java-gnome-hackers] boxedFor() name clash - compiling java-gnome 4.1.1 with OpenJDK 1.7
Brought to you by:
afcowie
From: Alexander B. <ab...@ro...> - 2011-12-06 21:38:04
|
Hello, Rebuilding java-gnome 4.1.1 with javac 1.7.0_b147 (on what will become Fedora 17) fails with this error: src/bindings/org/gnome/gdk/Plumbing.java:69: error: name clash: boxedFor(Class<? extends Boxed>,long) in org.gnome.gdk.Plumbing and boxedFor(Class<?>,long) in org.gnome.glib.Plumbing have the same erasure, yet neither hides the other protected static Boxed boxedFor(Class<? extends Boxed> type, long pointer) { ^ Adding "extends Boxed" to glib.Plumbing.boxedFor() makes it break elsewhere, but if I instead remove it from gdk it does compile. Is that the right fix? /Alexander |