When trying to create lexer from description, jflex crashes because of some missing classes. Reproducible: Always Steps to Reproduce: 1. Run jflex /path/to/jflex/file Actual Results: jflex crashed. Expected Results: Create java file with lexer.
Created attachment 373354 [details] Errors printed when trying to run jflex I checked the jflex.jar file that is installed in /usr/share/jflex/lib and there are some classes missing compared to "official" jar file.
Created attachment 394228 [details, diff] new ebuild This patch should fix it. It switches the build.xml to one that is based on the build.xml that upstream ships since jflex-1.5.1 (see next attachment). It also fixes several other issues. Actually, it should fix all problems that I know of except the collisions across the slots (see bug #504774).
Created attachment 394230 [details] build.xml for use in conjunction with above patch
Created attachment 394232 [details, diff] Fix for jflex-1.5.1 Fixes the same things as for jflex-1.5.0, but for jflex-1.5.1. Does not need an additional build.xml as it ships with the release tarball from upstream.
I've tried both and they work fine. So I've commited them to the tree. There you go: patrice@freshmint ~/gentoo-x86/dev-java/jflex $ head -20 ChangeLog # ChangeLog for dev-java/jflex # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/jflex/ChangeLog,v 1.18 2015/01/31 19:42:17 monsieurp Exp $ 31 Jan 2015; Patrice Clement <monsieurp@gentoo.org> files/jflex-1.5.0-build.xml, jflex-1.5.0.ebuild: Patch to fix jflex-1.5.0 (bug 505498) courtesy of Martin Walch <walch.martin@web.de>. 31 Jan 2015; Patrice Clement <monsieurp@gentoo.org> jflex-1.5.1.ebuild: Patch to fix jflex-1.5.1 (bug 505498) courtesy of Martin Walch <walch.martin@web.de>. Thanks Martin! :)