Bug 120875 - Javadoc extraction might includes optional annotation type member information for an annotation type
Summary: Javadoc extraction might includes optional annotation type member information...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 10:13 EST by Olivier Thomann CLA
Modified: 2006-02-15 10:24 EST (History)
0 users

See Also:


Attachments
Proposed fix (2.62 KB, patch)
2005-12-14 10:14 EST, Olivier Thomann CLA
no flags Details | Diff
Regression test (46.54 KB, patch)
2005-12-14 14:29 EST, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.