Bug 120875

Summary: Javadoc extraction might includes optional annotation type member information for an annotation type
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix
none
Regression test none

Description Olivier Thomann CLA 2005-12-14 10:13:28 EST
Using I20051212-2000,
The javadoc for an annotation type that has only optional annotation type members (that ones that have a default value) might include information relative to these members.
Comment 1 Olivier Thomann CLA 2005-12-14 10:13:47 EST
Will be fixed post M4.
Comment 2 Olivier Thomann CLA 2005-12-14 10:14:17 EST
Created attachment 31737 [details]
Proposed fix
Comment 3 Olivier Thomann CLA 2005-12-14 14:29:37 EST
Created attachment 31774 [details]
Regression test
Comment 4 Olivier Thomann CLA 2005-12-16 22:58:38 EST
Fixed and released in HEAD.
Regression test in org.eclipse.jdt.core.tests.model.AttachedJavadocTests.test017
Comment 5 Maxime Daniel CLA 2006-02-15 10:24:09 EST
Verified for 3.2 M5 using build I20060215-0010.

Test setup is a bit complex. Use an annotation from a binary classpath entry, the said annotation having an optional field. The hover javadoc shows the annotation main explanation only for M5, the main explanation plus the information for the optional field in M4.