History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-3824
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: James
Votes: 1
Watchers: 3
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Inspection for conccurency annotations: GuardedBy

Created: 10 Sep 06 13:09   Updated: 26 Jan 07 17:41
Component/s: Editor. Intention Actions, Editor. Error Highlighting, Code Analysis. Inspection
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 4,267


 Description  « Hide
Hi,

I've just read the book "Java Concurrency in Practice" and I'm thinging that it would be terribly usefull if IDEA could build an inspection that would check the concurrency annotations defined in the book.

This would be very usefull when writting concurrent application (it would make my life easier, every day).

There are only a couple of them: GuardedBy, Immutable,NotThreadSafe, ThreadSafe.

You can find the java doc for the annotions here:
http://www.javaconcurrencyinpractice.com/annotations/doc/index.html

You can find the source for the annotions here:
http://www.javaconcurrencyinpractice.com/jcip-annotations-src.jar

Thank you !



 All   Comments   Work Log   Change History      Sort Order:
Vladislav Kaznacheev - 03 Nov 06 19:15
This is definitely a good idea. There is JSR 305 dedicated to this issue. Once such annotations are standardized (in Java 1.7?), we will support them in IDEA.

Taras Tielkes - 26 Jan 07 17:41
The JSR will likely take some time (a year at least, I'd guess).

In the meantime having support for the JCiP annotations would be:
-valuable in terms of feedback and ideas (both for the expert group and for a potential future JSR 305 implementation in IDEA)
-actually useful

For instance, unguarded access of a GuardedBy annotated variable could offer a "surround with lock acquisition/relase" QuickFix.