This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 88000 - [retouche]Reformat code deletes comments
Summary: [retouche]Reformat code deletes comments
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 23:13 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-10-25 23:13:17 UTC
Using same source, PaintCanvas, as in issue 87999, right click in the editor and
choose Reformat Code.  All header comments at the top of the file are now blank
lines.
Comment 1 _ tboudreau 2006-10-25 23:15:08 UTC
Undo for Reformat Code also does not work correctly.  You get the comments back,
but the first line of the file now has several hundred space characters before
the /* to start the header comment.
Comment 2 Jiri Prox 2006-10-26 15:45:28 UTC
Cannot reproduce in actual build. I've checkout the modules and tried reformat
but it works fine.  Can you please attach the file?
Comment 3 _ tboudreau 2006-10-26 20:04:15 UTC
Grab the sources to Imagine - http://imagine.dev.java.net - try it on the files
in the ProjectUI project, like PaintCanvas or PaintTopComponent
Comment 4 Jiri Prox 2006-10-27 09:18:47 UTC
I've tried it again and it sill works for me(controled by CVS diff). Have you
changed some editor option?
Comment 5 _ tboudreau 2006-10-27 09:43:23 UTC
No, it was a completely fresh build + userdir opened over an existing project.
Comment 6 Pavel Flaska 2006-12-21 10:11:52 UTC
I was unable to reproduce it. Actual reformat does not use generator code. No
idea what is wrong, we plan to rewrite reformat to use pretty printer.
Comment 7 Pavel Flaska 2007-04-18 17:08:34 UTC
Because nobody else is able to reproduce, closing as WORKSFORME. -- If you are
able to reproduce, please reopen with additional information.