Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 235359

Summary: Incorrect "version" attribute value in libraryInfos.xml when using .hotspot_compiler
Product: [Eclipse Project] JDT Reporter: Pavel Zuev <pzuev>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse, liree, mwood, Olivier_Thomann
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
Sample libraryInfos.xml none

Description Pavel Zuev CLA 2008-06-03 11:09:20 EDT
Build ID: I20080530-1730

Steps To Reproduce:
1. Start Eclipse with Sun 1.6.0_04+ JVM, -server VM option and a .hotspot_compiler file. VM will write something like "CompilerOracle: exclude some/class/name.methodName" to stdout when starting up.
2. Create new workspace, go to Preferences->Installed JREs, define some new JRE or Edit existing JRE.
3. Look for file $WORKSPACE/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml. 
4. "version" attribute will be corrupted in the <libraryInfo> element; version value will start with the "CompilerOracle: blahblahblah" text.

More information:
I'm attaching sample libraryInfos.xml file.
The .hotspot_compiler file is used to exclude some Eclipse-specific methods from being optimized by JVM; this is a workaround for a server hotspot compiler bug in 1.6.0_04 VM.
Comment 1 Pavel Zuev CLA 2008-06-03 11:10:01 EDT
Created attachment 103332 [details]
Sample libraryInfos.xml
Comment 2 Olivier Thomann CLA 2008-06-03 11:11:41 EDT
Move to JDT/Debug
Comment 3 Christian Laireiter CLA 2008-12-23 12:57:38 EST
Short:
I'd like to see it commented as hard to solve, no time left, or fixed since it affects many developers (in my opinion).

LONG:

Ok, I tried the voting system, however no possibility (perceived) to add a comment, so I'll comment my Intention here.

The described error even occurres on a Linux system.

I voted, because each time I add a VM, I have to adjust this file (libraryInfos.xml).
I know of this bug and how to solve it. But many other developers do capitulate to this issue and reinstall eclipse completely if strange Errors occurr. (Even I do if I don't find a sollution in time, depending on the priority of my current work)

AND the error messages do not really indicate what happened.
(I use the -server flag on which the .hotspot_compiler becomes mandatory on my installations (WindowsXP, gentoo linux), because I try to max out performance everywhere, because I'm using most of the "super duper" features of eclipse [e.g. completion])

Maybe someone could point me to the souce code location where the addition of new VM's happens. Maybe I can find the sollution an submit a patch. Maybe :)
Comment 4 Darin Wright CLA 2009-01-06 12:53:26 EST
(In reply to comment #3)

> I'd like to see it commented as hard to solve, no time left, or fixed since it
> affects many developers (in my opinion).

We have very limited resources working on debug. Does not sound hard to solve.

> Maybe someone could point me to the souce code location where the addition of
> new VM's happens. Maybe I can find the sollution an submit a patch. Maybe :)

The plug-in to look at is: org.eclipse.jdt.launching

The class to look at is: StandardVMType (org.eclipse.jdt.internal.launching)

The method to look at is: generateLibraryInfo(...)
Comment 5 Darin Wright CLA 2009-06-12 12:24:04 EDT
I'm not able to reproduce using 1.6.0_04 or the latest 1.6.0_14.
Comment 6 Mark Wood CLA 2009-09-03 14:10:14 EDT
It happens here too.

eclipse.buildId=I20080617-2000
java.version=1.6.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  
Command-line arguments:  -os linux -ws gtk -arch x86 

Also spotted here:  http://todd.wallentine.com/blog/?p=317

It's a small but recurring problem for me, as I work on Mavenized trees of projects,  If I have more than one copy of the same tree in a single workspace (and I have many copies, working several issues at once) the Maven Eclipse plugin tends to find a project's internal dependencies in seemingly randomly-selected trees, so I make new workspaces quite often to prevent that.
Comment 7 Eclipse Genie CLA 2019-07-31 12:54:18 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.