Bug 82745

Summary: Outline view does not work in enum Math.RoundingMode
Product: [Eclipse Project] JDT Reporter: Peter Svahn <peter>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Peter Svahn CLA 2005-01-13 07:36:24 EST
The enum is displayed in the outline, but selecting an element in the outline 
does not take me to the corresponding place in the editor window (or anywhere).
Comment 1 Olivier Thomann CLA 2005-01-13 10:29:43 EST
Some element don't exist in the source code, but you can see them in the
outliner. Try to select a field like:
CEILING
DOWN
FLOOR
HALF_DOWN
HALF_EVEN
HALF_UP
UNNECESSARY
UP
it works. But selecting $VALUES doesn't work, because $VALUES is a synthetic field.
valueOf(int) works fine, but not valueOf(String) or values() that are synthetic
methods added by the compiler. They don't exist in the source.

Ok to close?
Comment 2 Peter Svahn CLA 2005-01-13 15:35:58 EST
Strange, still it does not work for me...
I'm using the 3.1.0 build 200412162000 version.

I have made some observations. If I try to browse to the corresponding 
declaration of for instance CEILING (BigDecimal.ROUND_CEILING) using F3 in 
RoundingMode I see a message in the status bar saying "current text selection 
does not resolve to a java element". 

Furthermore, if you try to use F3 in BigDecimal.divide to find the declaration 
of for example RoundingMode.CEILING the RoundingMode source file if opened but 
the cursor is placed in the beginning of the file.
Comment 3 Olivier Thomann CLA 2005-01-14 11:03:00 EST
Could you please try with a more recent build? 200412162000 is pretty old.
Comment 4 Peter Svahn CLA 2005-01-15 08:48:12 EST
OK, works fine in latest integration build I20050112-1200.
Comment 5 Philipe Mulet CLA 2005-01-15 08:57:06 EST
Thanks. Closing