Bug 278180 - [formatter] Formatter doesn't work for javadoc on package-info.java
Summary: [formatter] Formatter doesn't work for javadoc on package-info.java
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 RC4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 06:24 EDT by James Shaw CLA
Modified: 2009-06-05 09:15 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Shaw CLA 2009-05-28 06:24:07 EDT
Created a package-info.java, tried to do a Source>Format on the package's javadoc, but this had no effect.
Comment 1 Olivier Thomann CLA 2009-05-28 08:30:11 EDT
Did you check with 3.5RC2?
Comment 2 James Shaw CLA 2009-05-28 17:31:56 EDT
I've just done so: the bug's present in 3.4.2 and 3.5RC2.
Comment 3 Olivier Thomann CLA 2009-05-28 19:37:17 EDT
I'll investigate for 3.5.1. Too late for 3.5.
Comment 4 Jay Arthanareeswaran CLA 2009-06-01 06:46:12 EDT
James, did you try enabling the 'Enable header comment formatting' option? You can find the option by editing the formatter profile (Preferences>Java>Code Style>Formatter) When editing the profile, you will find this option under the Comments tab.
Comment 5 James Shaw CLA 2009-06-01 08:39:22 EDT
Aha, that fixes it.  Interesting that this is a 'general' setting, and not a javadoc setting.  Does the formatter not distinguish between package javadoc and a plain comment?
Comment 6 Olivier Thomann CLA 2009-06-01 08:57:03 EDT
The header is the first comment at the beginning of the method regardless of the type of comment it can be.
Closing as INVALID as this was a setting issue.
Comment 7 Olivier Thomann CLA 2009-06-05 09:15:28 EDT
Verified.