Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 419412 - [1.8][compiler] Misattribution of hybrid annotations in class files.
Summary: [1.8][compiler] Misattribution of hybrid annotations in class files.
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 287648
  Show dependency tree
 
Reported: 2013-10-14 23:02 EDT by Srikanth Sankaran CLA
Modified: 2013-10-15 00:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srikanth Sankaran CLA 2013-10-14 23:02:38 EDT
BETA_JAVA8:

The following program results in a class file in which the method foo()
is annotated with @T. This is incorrect and needs to be fixed:

// ---
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;


@Target({ElementType.TYPE_USE, ElementType.FIELD})
@interface T {
	
}
public class X {
    @T 
	int foo() { 
	   return 0;
   }
}