Bug 110296 - [J2EE Annotations] Handling TransactionAttribute and other J2EE annotations
Summary: [J2EE Annotations] Handling TransactionAttribute and other J2EE annotations
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 06:30 EDT by Sergey Vladimirov CLA
Modified: 2016-01-14 13:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Vladimirov CLA 2005-09-22 06:30:36 EDT
In Java 5 methods can have annotations, like '@TransactionAttribute
(TransactionAttributeType.REQUIRED)'

It will be good, if Eclipse can show warnings, if such annotations applied to 
wrong methods, like:

- appling @TransactionAttribute annotation to private or protected
- appling @Entity, @Session, etc to final class
- appling TransactionAttribute(REQUIRED) or @TransactionAttribute(REQUIRED_NEW) 
to method, which calls TransactionAttribute(NEVER) method, or...
- appling @TransactionAttribute(NEVER) or @TransactionAttribute(NOT_SUPPORTED) 
to method, which calls @TransactionAttribute(MANDATORY) method