Bug 427753 - [1.8] org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor should show type annotations.
Summary: [1.8] org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor should show type...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact: Jay Arthanareeswaran CLA
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2014-02-09 08:00 EST by Srikanth Sankaran CLA
Modified: 2023-06-08 17:09 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srikanth Sankaran CLA 2014-02-09 08:00:29 EST
Spawned from: https://bugs.eclipse.org/bugs/show_bug.cgi?id=426616#c4

Given this program:

// --
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.*;
@Retention(RetentionPolicy.RUNTIME)
@Target(TYPE_USE)
@interface Marker {}
public class X extends @Marker Object {}


this is what I see in the class file editor:

/ Compiled from X.java (version 1.8 : 52.0, super bit)
public class X {
  
  // Method descriptor #6 ()V
  // Stack: 1, Locals: 1
  public X();
    0  aload_0 [this]
    1  invokespecial java.lang.Object() [8]
    4  return
      Line numbers:
        [pc: 0, line: 6]
      Local variable table:
        [pc: 0, pc: 5] local: this index: 0 type: X

}
Comment 1 Srikanth Sankaran CLA 2014-02-09 08:00:53 EST
Does this actually belong in JDT/Text ?
Comment 2 Dani Megert CLA 2014-02-10 04:19:20 EST
See org.eclipse.jdt.core.util.ClassFileBytesDisassembler.disassemble(byte[], String, int)
Comment 3 Srikanth Sankaran CLA 2014-02-10 05:17:23 EST
(In reply to Dani Megert from comment #2)
> See org.eclipse.jdt.core.util.ClassFileBytesDisassembler.disassemble(byte[],
> String, int)

Thanks, this is the same thing we use that already works for us - so I suspected
some customization issue at the abstraction use site.

But it turns out we are inconsistent in our handling of SE8 annotations vis a vis
SE7 annotations in DETAILED vs SYSTEM modes and all our tests use SYSTEM mode.

This would require some work as there is too much detail we print today that
would completely mess up the formatting, line breaks etc.

Don't expect to get to this before 4.4.
Comment 4 Srikanth Sankaran CLA 2014-04-08 01:33:07 EDT
Looking at my list of tasks for 4.4, I doubt that I'll get to this in 4.4
time. Retargetting to 4.5. If time permits, will pull back to 4.4
Comment 5 Srikanth Sankaran CLA 2014-09-02 00:09:27 EDT
I don't expect to get to this anytime soon, any volunteers ?
Comment 6 Jay Arthanareeswaran CLA 2014-09-02 03:28:25 EDT
I believe Shankha has worked on in this area. Assigning to him.
Comment 7 Eclipse Genie CLA 2020-07-19 15:18:50 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.
Comment 8 Manoj N Palat CLA 2020-07-19 21:16:00 EDT
This issue still persists - keeping in the radar (may be 4.18 - until 4.18 target comes up - targeting 4.17)
Comment 9 Manoj N Palat CLA 2021-02-19 07:27:19 EST
Bulk move out of 4.19
Comment 10 Eclipse Genie CLA 2023-06-08 17:09:36 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.