On Thu, 2015-02-26 at 18:06 +0100, Alec Leamas wrote: > On 26/02/15 17:51, Andrew Haley wrote: > > On 02/26/2015 04:34 PM, Alec Leamas wrote: > >> On 26/02/15 15:08, Andrew Haley wrote: > >>> On 02/26/2015 01:49 PM, Alec Leamas wrote: > >> > >>>> OK, here [1] is a srpm which builds with patches which switches to ecj. > >>>> Without them (first two), there is the crash (for me, on f21) [2] > >>>> > >>>> [1] https://leamas.fedorapeople.org/javabug/tonto-1.44-2.fc21.src.rpm > >>>> [2] http://ur1.ca/jt1em > >>> > >>> Works for me with everything I've tried > >> > >> You have disabled the patches, have you? > > > > I disabled one patch. Only one patch seemed to have anything to do with > > ecj. If this is wrong, please supply a test case that fails. > > sorry, my bad. This spec (together with srpm above) should do it, it > does for me: http://ur1.ca/jt2tc The sources seem to be using "enum" as an identifier which became a keyword in JDK 1.5 and up. FWIW, it was all there in the compiler error messages ;-) You need to apply the attached patch which gets you past this compile problem. Then it fails with: tonto-1.44/source/com/neuron/app/tonto/Tonto.java:1489: error: package com.apple.mrj does not exist [javac] new com.apple.mrj.MRJPrefsHandler() { [javac] ^ But that's a separate problem. I have no idea where com.apply.mrj should come from. HTH, Severin > Cheers! > > --alec > > -- > java-devel mailing list > java-devel@xxxxxxxxxxxxxxxxxxxxxxx > https://admin.fedoraproject.org/mailman/listinfo/java-devel
--- source/com/neuron/app/tonto/Tonto.java.orig 2015-02-27 09:13:39.387731301 +0100 +++ source/com/neuron/app/tonto/Tonto.java 2015-02-27 09:15:26.479034048 +0100 @@ -1997,11 +1997,11 @@ static class TontoEnum implements Enumeration { Tonto next; - Enumeration enum; + Enumeration enumeration; TontoEnum() { - enum = tontos.elements(); + enumeration = tontos.elements(); getNext(); } @@ -2019,9 +2019,9 @@ void getNext() { - while (enum.hasMoreElements()) + while (enumeration.hasMoreElements()) { - Object o = enum.nextElement(); + Object o = enumeration.nextElement(); if (o instanceof Tonto) { next = (Tonto)o; --- source/com/neuron/app/tonto/CCFPorter.java.orig 2015-02-27 09:13:18.390132562 +0100 +++ source/com/neuron/app/tonto/CCFPorter.java 2015-02-27 09:14:39.214783722 +0100 @@ -791,9 +791,9 @@ CCFActionList list = (CCFActionList)actList.get(i); XMLNode node = (XMLNode)acts.get(list); Vector acc = new Vector(); - for (Enumeration enum = node.getNodeEnumeration("action"); enum != null && enum.hasMoreElements(); ) + for (Enumeration enumeration = node.getNodeEnumeration("action"); enumeration != null && enumeration.hasMoreElements(); ) { - XMLNode act = (XMLNode)enum.nextElement(); + XMLNode act = (XMLNode)enumeration.nextElement(); parseAction(ccf, root, act, acc); } if (acc.size() > 0) --- source/com/neuron/app/tonto/ui/PNGImageProducer.java.orig 2015-02-27 09:19:31.560916897 +0100 +++ source/com/neuron/app/tonto/ui/PNGImageProducer.java 2015-02-27 09:19:51.306600417 +0100 @@ -937,9 +937,9 @@ private synchronized void sendPixels(int x, int y, int w, int h) { int off = dataWidth * y + x; - Enumeration enum = theConsumers.elements(); - while (enum.hasMoreElements()) { - ImageConsumer ic = (ImageConsumer) enum.nextElement(); + Enumeration enumeration = theConsumers.elements(); + while (enumeration.hasMoreElements()) { + ImageConsumer ic = (ImageConsumer) enumeration.nextElement(); if ((pixels != null) && (isConsumer(ic))) { if (pixels instanceof byte[]) { ic.setPixels(x, y, w, h, model, bpixels, off, dataWidth);
-- java-devel mailing list java-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/java-devel