Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505498 - dev-java/jflex-1.5.0: JFlex fails to run
Summary: dev-java/jflex-1.5.0: JFlex fails to run
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal critical (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-23 19:29 UTC by Tadej Borovšak
Modified: 2015-01-31 19:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Errors printed when trying to run jflex (file_505498.txt,858 bytes, text/plain)
2014-03-23 19:32 UTC, Tadej Borovšak
Details
new ebuild (jflex-1.5.0.patch,1.68 KB, patch)
2015-01-18 03:21 UTC, Martin Walch
Details | Diff
build.xml for use in conjunction with above patch (jflex-1.5.0-build.xml,5.80 KB, text/plain)
2015-01-18 03:23 UTC, Martin Walch
Details
Fix for jflex-1.5.1 (jflex-1.5.1.patch,2.10 KB, patch)
2015-01-18 03:26 UTC, Martin Walch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tadej Borovšak 2014-03-23 19:29:23 UTC
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.
Comment 1 Tadej Borovšak 2014-03-23 19:32:43 UTC
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.
Comment 2 Martin Walch 2015-01-18 03:21:46 UTC
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).
Comment 3 Martin Walch 2015-01-18 03:23:02 UTC
Created attachment 394230 [details]
build.xml for use in conjunction with above patch
Comment 4 Martin Walch 2015-01-18 03:26:53 UTC
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.
Comment 5 Patrice Clement gentoo-dev 2015-01-31 19:43:49 UTC
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! :)