[fedora-java] Still newbie: compiler crash, walk-arounds?

Severin Gehwolf sgehwolf at redhat.com
Fri Feb 27 08:25:23 UTC 2015


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 at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/java-devel


-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_enum_keywords.patch
Type: text/x-patch
Size: 2268 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/java-devel/attachments/20150227/b95ffd1a/attachment.bin>


More information about the java-devel mailing list