Community
Participate
Working Groups
Build ID: I20080617-2000 Steps To Reproduce: 1. Place an @category _identifier_ annotation in javadoc, which allows the Outline view to see it and categorize elements in its tree. Do not use "public", etc, as a category identifier; use something like "preferred". 2. Format the source file. 3. Note that the javadoc nature of the comments has been removed (/** becomes /*). Note that the outline view no longer shows categories. More information: The core formatter code has special case code for category, but appears to simply delete the tag rather than leave it alone.
Please provide a simple test case to reproduce, thanks
I got some troubles to reproduce, but I think I get it now... The following simple test case works properly: public class Test { /** * @category test */ void foo() { } } But as soon as I add some other text: public class Test { /** * Test for bug 238920 * @category test */ void foo() { } } Then the tag vanishes during the formatting: public class Test { /** * Test for bug 238920 * */ void foo() { } } I'll investigate...
That's it exactly. Check your first test case as well...for me /** * @category test */ void foo() { } changes to /* * @category test */ void foo() { } Note that the javadoc style comment (/**) has been changed to non-javadoc (/*). Maybe your build does not do this. There is a TODO in the source code near this area that detects the @category, refers to the future, and may be dropping it silently. I need to get a debugging setup for Eclipse together so I can just give you a patch next time. Thanks for your quick attention to this. Categorizing methods is something desperately needed by Eclipse generally...smalltalk had protocols.
Created attachment 106330 [details] Proposed patch The FormatterCommentParser needed to create the tag while parsing the @category tag!
Released for 3.5M1. Jerome, could you validate the backport to 3.4.1?
This is a major regression comparing to 3.3.2. +1 for 3.4.1
Reopen to fix it in R3_4_maintenance stream...
Created attachment 106410 [details] Proposed patch for R3_4_maintenance stream
Released for 3.4.1
Verified for 3.5M1 using I20080805-1307
Reopen to close as RESOLVED/FIXED. Will be closed as VERIFIED during 3.4.1 verification pass.
Fixed.
Verified for 3.4.1 using M20080827-2000