United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4652184 : please compile j2sdk rt.jar with -g (all options)

Details
Type:
Enhancement
Submit Date:
2002-03-13
Status:
Resolved
Updated Date:
2005-05-10
Project Name:
JDK
Resolved Date:
2005-05-10
Component:
infrastructure
OS:
generic,solaris_2.5.1,windows_xp
Sub-Component:
build
CPU:
generic,x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0,1.4.2,1.4.2_04,5.0
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description

Name: nt126004			Date: 03/13/2002


FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

FULL OPERATING SYSTEM VERSION :

Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
If i use a current JDK (1.4) in a IDE (eclipse) or what
ever debugger you choose to use, then when you debug
through the JDK classes you don't see the local vars ect.
This is because the rt.jar of the JDK (so not the
JRE) doesn't have debug attributes for those things. I
believe the only thing that is different from the JRE
rt.jar is that it does have the source attribute because
in Eclipse where i can attach source jar to a class file
jar i can't use the JRE rt.jar.

So if that is already different why don't we also include
full debugging attributes in the JDK? It is not meant for
runtime or performace so that can't be a discussion.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Just debug in a debugger through the JDK classes

EXPECTED VERSUS ACTUAL BEHAVIOR :
that i see all the local vars ect.

This bug can be reproduced always.

CUSTOMER WORKAROUND :
What i do know is completely recompile the rt.jar and
overwrite this one. But that is not very easy to do.
Because for one thing the JDK classes by itself don't
compile all!! You still need to include other jars. Which
i find very strange. the rt.jar should compile by itself
it should have no dependencies with other things.
(Review ID: 139579) 
======================================================================

Name: tb29552			Date: 01/24/2004


A DESCRIPTION OF THE REQUEST :
Currently, although the source code for the java core classes is provided, it is very hard to debug calls to these core libraries because local variable information is not available.

Please provide a separate download of the SDK (for developers) that contains full debug information for the rt.jar and other libraries.

JUSTIFICATION :
Full debug information will be a gread aid for java developers.
Currently I have to either guess what the system code does, or to compile some of the clasees by myself (from the provided source code).
(Review ID: 235567)
======================================================================

                                    

Comments
EVALUATION

Adding debug information to the classes in rt.jar, etc., would increase
download size by a beleived-to-be significant amount. 
###@###.### 2002-04-17

We need to generate debug rt.jar as part of the build.


###@###.### 2004-04-07

I have done some investigation further on this and try to implement this in our nightly build process. But unfortunately, it is increasing our build timing significantly on our all platform. I am still looking into this and see how we could reduce our build timing.

Hands on issues:- 

o Download size will be increased.
o Increased builds timing all our platform.

I am still looking into this.


###@###.### 2005-03-02 20:42:08 GMT

We will be building a debug rt.jar with the fastdebug builds. This should satisfy this request.
It's not exactly clear how we will deliver the fastdebug bits (libjvm.so or rt.jar) to external people.


###@###.### 2005-03-11 23:48:41 GMT
                                     
2005-03-11
PUBLIC COMMENTS

.
                                     
2004-10-01
WORK AROUND

Grab the SCSL bundles and build a debug j2sdk by setting OTHER_JAVACFLAGS=-g.

###@###.### 2002-04-17
                                     
2002-04-17



Hardware and Software, Engineered to Work Together