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

Bug 324314

Summary: The outline view does not make difference between a native and a non-native method
Product: [Eclipse Project] JDT Reporter: Andres Gomez Casanova <angoca>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: trivial    
Priority: P3 CC: daniel_megert, deepakazad
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
ScreenShot showing the problem none

Description Andres Gomez Casanova CLA 2010-09-02 10:42:01 EDT
Build Identifier: I20100608-0911

The outline view describes the methods of a class.
It differciates between:
- static and non-static
- the visibility: public, protected, private and default
- final and non-final
- overrideded
- transient and non-transient
BUT it does not changes the icon when a method is native.

Reproducible: Always

Steps to Reproduce:
1. Just write the signature of a native method:
private native void getId();
private void getName(){}
These methods in the outline view have the same icon.
Comment 1 Dani Megert CLA 2010-09-02 11:04:16 EDT
Works for me (using Java editor): it shows a little N top right.
Comment 2 Andres Gomez Casanova CLA 2010-09-02 12:47:58 EDT
Created attachment 178062 [details]
ScreenShot showing the problem

As you can see, the selected perspective is Java, and the Eclipse version is Helios (3.6).

The outline does not make difference when a method is native. It does not show the "n" as you said.
Comment 3 Deepak Azad CLA 2010-09-02 14:13:16 EDT
This is fixed in 3.7 - Bug 231329.

*** This bug has been marked as a duplicate of bug 231329 ***
Comment 4 Andres Gomez Casanova CLA 2010-09-02 15:13:49 EDT
Why was it closed? the other one is already closed. It means that the problem
still exists and it has not been solved.

Bug 231329 -  [decorators] decorator for native methods
Summary:     [decorators] decorator for native methods
Status:     RESOLVED FIXED 

It says that:

Markus Keller      2010-06-24 11:43:24 EDT
Fixed in HEAD.

But as you can see, the problem still exists.
Comment 5 Deepak Azad CLA 2010-09-02 15:39:10 EDT
(In reply to comment #4)
> But as you can see, the problem still exists.
Please try with the latest Eclipse 3.7 milestone build (http://download.eclipse.org/eclipse/downloads/drops/S-3.7M1-201008051700/index.php). You have Eclipse 3.6 .

*** This bug has been marked as a duplicate of bug 231329 ***