-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
5.0
-
x86
-
linux
A DESCRIPTION OF THE REQUEST :
I would like ability to attach annotations to java statements as well as methods/classes/packages etc
JUSTIFICATION :
having difficulty writing unit tests to duplicate and test for a race condition... would like to be able to set break/pause points for different threads, which is easy to do manually in debugger, but not currently possible as part of an automated unit test without inserting further code into code being tested... if it were possible to annotate statements then debugger interface could be used to control threads running code being tested
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
- ability to annotate java statements within methods
- ability to retrieve all statement annotations within a method
I would like ability to attach annotations to java statements as well as methods/classes/packages etc
JUSTIFICATION :
having difficulty writing unit tests to duplicate and test for a race condition... would like to be able to set break/pause points for different threads, which is easy to do manually in debugger, but not currently possible as part of an automated unit test without inserting further code into code being tested... if it were possible to annotate statements then debugger interface could be used to control threads running code being tested
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
- ability to annotate java statements within methods
- ability to retrieve all statement annotations within a method
- duplicates
-
JDK-6350731 Annotation system prohibits certain annotations, drops others
-
- Closed
-
- relates to
-
JDK-6508965 Cannot annotate static or instance initializers
-
- Closed
-