Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 195261 - java editor does not understand package-info.java format
Summary: java editor does not understand package-info.java format
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 09:48 EDT by David Koski CLA
Modified: 2007-07-29 09:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Koski CLA 2007-07-03 09:48:42 EDT
The java editor does not seem to understand the package-info.java format, roughly:

/**
  * javadoc
  */
  
 package foo;
 
 import X;

1.  It places imports (cia organize imports, etc.) at the top of the file rather than after the package line.

2.  It does not recognize the package scoped javadoc as javadoc:
2a.  The javadoc preview view does not render it
2b.  Reformat does not reformat it as if it were javadoc, e.g. wrapping and forcing leading *'s (in fact it seems to do nothing)
Comment 1 Dani Megert CLA 2007-07-04 03:09:49 EDT
Please don't report two problems in one bug as this is a pain to manage. Also, please search bugzilla for similar bugs before filing a new one.

>1.  It places imports (cia organize imports, etc.) at the top of the file
>rather than after the package line.
This is bug 157541.

>2.  It does not recognize the package scoped javadoc as javadoc:
>2a.  The javadoc preview view does not render it
This is bug 163633.

>2b.  Reformat does not reformat it as if it were javadoc, e.g. wrapping and
>forcing leading *'s (in fact it seems to do nothing)
This is yet another bug. Please file a bug report against JDT Core that reports just the formatter problem.
Comment 2 David Koski CLA 2007-07-04 09:19:23 EDT
(In reply to comment #1)
> Please don't report two problems in one bug as this is a pain to manage.

Fair enough, though maybe you guys need a split/clone feature.

> Also,
> please search bugzilla for similar bugs before filing a new one.

Please provide such a feature through Help -> Report Bug.  Seriously, I don't think you should place this onus on your users or they will simply not file any as it is too much trouble.

> >2b.  Reformat does not reformat it as if it were javadoc, e.g. wrapping and
> >forcing leading *'s (in fact it seems to do nothing)
> This is yet another bug. Please file a bug report against JDT Core that reports
> just the formatter problem.

Done, bug 195379
Comment 3 Eclipse Webmaster CLA 2007-07-29 09:23:18 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991