Bug 73319 - dev-java/bcel-5.1 fails
Bug#: 73319 Product:  Gentoo Linux Version: 2004.1 Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P1
Resolution: FIXED Assigned To: java@gentoo.org Reported By: hetfield666@gmail.com
Component: Ebuilds
URL: 
Summary: dev-java/bcel-5.1 fails
Keywords:  
Status Whiteboard: 
Opened: 2004-12-04 02:56 0000
Description:   Opened: 2004-12-04 02:56 0000
after log4j unlock i tried to emerge eclipse

but bcel failed.

always with jdk 5.0!

------- Comment #1 From Karl Trygve Kalleberg (RETIRED) 2004-12-04 04:10:49 0000 -------
I do not understand the problem. Please state your problem clearly and
completely
so that may attempt to reproduce it.

In particular, list the versions of the packages involved, and all pertaining
error messages.

------- Comment #2 From Patrizio Bassi 2004-12-04 04:54:57 0000 -------
sorry, i haven't my notebook so i can't try again:

infos:
jdk 5.0

trying to compile it gives errors, the "usual ones"
like enum and so on...

and compilation fails.

i searched for a newer version, but seems 5.1 is the lastest.
patch needed so.

------- Comment #3 From Karl Trygve Kalleberg (RETIRED) 2004-12-04 05:44:24 0000 -------
Presumably, the build.xml needs to be patched with source/target=1.4 (or
older).

------- Comment #4 From Patrizio Bassi 2004-12-06 03:25:27 0000 -------
found a solution.

a) USE="-jikes" or will create so many errors.

b) search the sources for "Deprecated" class. it's in 2 files only.
Pass2verifier and String[...]
i don't remember exactly...i did the patch on a friend's pc.

changed the Deprecated class into "org.apache.bcel.classfile.Deprecated"

and it will compile good.

should be 5 occorrences only.

i did manually and so i can't provide a patch.


(of course this is for jdk 5.0, but will work with older versons too. it's due to java.lang.Deprecated class, so Deprecated will be ambigous).


please apply asap.

------- Comment #5 From Jan Brinkmann (RETIRED) 2004-12-19 09:43:00 0000 -------
Created an attachment (id=46350) [details]
bcel-5.1.ebuild

a new ebuild which doesnt make use of the CLASSPATH=foo... thing. i've also
done some other cleanups and the most important it applies two patches. 

------- Comment #6 From Jan Brinkmann (RETIRED) 2004-12-19 09:44:55 0000 -------
Created an attachment (id=46351) [details]
bcel-5.1-gentoo-buildxml.diff

this patch adds source and target attributes to the javac nodes and adds a
reference to ${regexp.jar} to the build.xml. by doing it this way we can simply
add regexp.jar=... to the build.properties file inside of the ebuild.

------- Comment #7 From Jan Brinkmann (RETIRED) 2004-12-19 09:47:53 0000 -------
Created an attachment (id=46352) [details]
bcel-5.1-gentoo-src.diff

patches the source code to get rid of the errors which prevented bcel from
being build using jdk 1.5

------- Comment #8 From Jan Brinkmann (RETIRED) 2004-12-19 10:05:43 0000 -------
Created an attachment (id=46354) [details]
bcel-5.1.ebuild

fixed a dependendy error

------- Comment #9 From Karl Trygve Kalleberg (RETIRED) 2004-12-30 07:35:25 0000 -------
Fixed. No revdump done.