Bug 158734 - eclipse-ecj-3.1.0_fc-0.M7.5 breaks java-gcj-compat's tools.jar
eclipse-ecj-3.1.0_fc-0.M7.5 breaks java-gcj-compat's tools.jar
Product: Fedora
Classification: Fedora
Component: java-1.4.2-gcj-compat (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Fitzsimmons
Depends On:
Blocks: FC4Blocker
  Show dependency treegraph
Reported: 2005-05-25 07:14 EDT by Gary Benson
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-25 12:00:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Testcase (179 bytes, text/plain)
2005-05-25 07:14 EDT, Gary Benson
no flags Details

  None (edit)
Description Gary Benson 2005-05-25 07:14:51 EDT
Description of problem:
Changes to com.sun.tools.javac.Main in the latest java-1.4.2-gcj-compat break
ant's javac task.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. javac -classpath /usr/lib/jvm/java/lib/tools.jar Test.java
2. java -classpath /usr/lib/jvm/java/lib/tools.jar:. Test
Actual results:
java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.batch.Main 

Expected results:
Nothing happens (it Just Works)
Comment 1 Gary Benson 2005-05-25 07:14:51 EDT
Created attachment 114820 [details]
Comment 2 Gary Benson 2005-05-25 07:38:45 EDT
Ok, the problem is that /usr/share/java/jdtcore.jar was renamed as
org.eclipse.jdt.core_3.1.0.jar between eclipse-ecj-3.1.0_fc-0.M6.22 and M7.5. 
As an immediate fix I'm going to patch java-gcj-compat's tools.jar to use the
new path (Beehive will be broken until we do this) but for the long term we
should probably do something more robust: a filename like
org.eclipse.jdt.core_3.1.0.jar is obviously not something that's going to stay
the same over time.

How about having having the /usr/share/java symlink called eclipse-ecj.jar?
jdtcore.jar is fairly undescriptive for such a crucial file.
Comment 3 Andrew Overholt 2005-05-25 08:47:38 EDT
Sorry I didn't notice this change when we pushed in Eclipse 3.1M7. 
eclipse-ecj.jar sounds good to me; I'll make that change now.
Comment 4 Gary Benson 2005-05-25 09:28:12 EDT
java-1.4.2-gcj-compat- in dist-fc4-HEAD is pointing at
org.eclipse.jdt.core_3.1.0.jar, so ant in beehive will start working again when
someone moves that across to dist-fc4.  If you build a new eclipse for FC4 then
could you please make sure java-gcj-compat is updated and rebuilt too?  The bit
that needs changing is in java-gcj-compat-bz158734.patch for now.
Comment 5 Thomas Fitzsimmons 2005-05-25 12:00:16 EDT
This is fixed in java-1.4.2-gcj-compat-
Comment 6 Gary Benson 2005-05-25 12:23:05 EDT
Woah, Andrew hasn't changed it in eclipse yet!
Comment 7 Thomas Fitzsimmons 2005-05-25 13:58:15 EDT
The updated eclipse is building right now.

Note You need to log in before you can comment on or make changes to this bug.