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 112015 - Reformat code removes this() calls
Summary: Reformat code removes this() calls
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-06 09:25 UTC by growe
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code before 'reformat code' (10.56 KB, application/octet-stream)
2007-08-06 09:30 UTC, growe
Details
Code after 'reformat code' (8.88 KB, text/plain)
2007-08-06 09:31 UTC, growe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description growe 2007-08-06 09:25:14 UTC
Using 'reformat code' (Alt+Shift+F) removes a "this()" call from the first line of a constructor in Java. The version 
is NetBeans 6 Milestone 10.
Comment 1 growe 2007-08-06 09:29:43 UTC
Using 'reformat code' with Alt+Shift+F removes a "this()" call from the first line of a constructor in Java. (NetBeans 
6 milestone 10).

The attached files show the code before and after a reformat. The dropped this() calls are from several overloaded 
constructors near the start of the files.
Comment 2 growe 2007-08-06 09:30:39 UTC
Created attachment 46176 [details]
Code before 'reformat code'
Comment 3 growe 2007-08-06 09:31:29 UTC
Created attachment 46177 [details]
Code after 'reformat code'
Comment 4 Jiri Prox 2007-08-06 12:05:32 UTC
I cannot reproduce it latest daily build. Please try newer build and reopen if it still valid.



Product Version: NetBeans IDE Dev (Build 070806) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Linux
version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /home/jp159440/.netbeans/dev