Bug 189459 - [1.6][compiler] Doc comment support should not be systematically activated while processing annotations
Summary: [1.6][compiler] Doc comment support should not be systematically activated wh...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Satyam Kandula CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 219820 316782 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-28 11:34 EDT by Frederic Fusier CLA
Modified: 2011-03-08 05:36 EST (History)
5 users (show)

See Also:
Olivier_Thomann: review+


Attachments
Proposed patch (10.05 KB, patch)
2011-02-01 09:44 EST, Satyam Kandula CLA
satyam.kandula: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2007-05-28 11:34:07 EDT
Follow-up of bug 188656. The fix for this bug activates doc comment support as soon as the compliance is 1.6 and 'proc:none' wasn't specified in the command line. In all other cases, this results to parse the javadoc comment...

In fact, we can improve this fix by activating javadoc comment support only if the processors manager really found annotations processors. In case not, this support is definitely not necessary and should not be activated.
Comment 1 Olivier Thomann CLA 2010-10-29 13:57:41 EDT
Satyam, you might want to change this with your APT changes. APT only requires the positions of the javadoc comments. The javadoc comments don't need to be resolved.
Comment 2 Satyam Kandula CLA 2011-01-31 23:57:21 EST
*** Bug 316782 has been marked as a duplicate of this bug. ***
Comment 3 Satyam Kandula CLA 2011-02-01 09:44:57 EST
Created attachment 188049 [details]
Proposed patch

Made such that javadoc is not processed and not even resolved if javadoc is not enabled but annotation processing flag is set.
Comment 4 Satyam Kandula CLA 2011-02-01 09:47:37 EST
Olivier, Can you please review this patch? This doesn't handle bug 212207, but I guess any solution we come over there can be easily applied on top of this.
Comment 5 Olivier Thomann CLA 2011-02-07 12:28:36 EST
Looks ok to me.
Comment 6 Walter Harley CLA 2011-02-07 12:58:12 EST
+1
Comment 7 Satyam Kandula CLA 2011-02-08 00:17:58 EST
Thanks Olivier and Walter for the Review.
Released on HEAD
Comment 8 Satyam Kandula CLA 2011-02-27 23:27:09 EST
*** Bug 219820 has been marked as a duplicate of this bug. ***
Comment 9 Jay Arthanareeswaran CLA 2011-03-08 05:36:24 EST
Verified for 3.7M6 using build I20110301-1537.