Bug 129241

Summary: [Javadoc] deprecation warning wrongly reported when ignoring Malformed Javadoc comments
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2006-02-23 16:50:35 EST
Using 3.2 M5 + test case of bug 129137.

Set Javadoc compiler option "Malformed Javadoc comments" to "Ignore"
=> observe that deprecation warning is still reported in Javadoc.

This warning goes away only when box "Report deprecated references" is unchecked.

This behavior is not correct, warning should disappear as soon as user want to ignore malformed javadoc comments!
Comment 1 Frederic Fusier CLA 2006-02-27 07:46:52 EST
Fixed and released in HEAD.

Change ProblemReporter.getIrritant(long) method to return only CompilerOptions.InvalidJavadoc value even for Javadoc deprecation problems.
Before, CompilerOptions.UsingDeprecatedAPI was also returned and this made reporting error in Javadoc as soon as compiler reported deprecation in Java code whatever the value of javadoc options were...

Test cases added in JavadocBugsTests
Comment 2 Olivier Thomann CLA 2006-03-28 11:30:41 EST
Verified using I20060328-0010 for 3.2M6