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.
Summary: | Reformat code breaks form source | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Prox <jiriprox> |
Component: | Source | Assignee: | Dusan Balek <dbalek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | janie, mmirilovic, pflaska |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 106361 | ||
Attachments: | Project |
Description
Jiri Prox
2007-06-19 12:51:11 UTC
I set this issue as M10 stopper because when this use case is done on form generated in Java Desktop Application, code is scattered. IMHO users are using code formatting very often and that's the reason why I increased priority Seems to me that we will not have M10. Fixed. Checking in source/src/org/netbeans/modules/java/source/save/Reformatter.java; /cvs/java/source/src/org/netbeans/modules/java/source/save/Reformatter.java,v <-- Reformatter.java new revision: 1.3; previous revision: 1.2 done Checking in editor/src/org/netbeans/modules/editor/java/NbJavaFormatter.java; /cvs/java/editor/src/org/netbeans/modules/editor/java/NbJavaFormatter.java,v <-- NbJavaFormatter.java new revision: 1.2; previous revision: 1.1 done Checking in editor/src/org/netbeans/modules/editor/java/JavaKit.java; /cvs/java/editor/src/org/netbeans/modules/editor/java/JavaKit.java,v <-- JavaKit.java new revision: 1.42; previous revision: 1.41 done Checking in source/src/org/netbeans/api/java/source/SourceUtils.java; /cvs/java/source/src/org/netbeans/api/java/source/SourceUtils.java,v <-- SourceUtils.java new revision: 1.38; previous revision: 1.37 done Could you please verify this issue for M10? verified in trunk and m10 I think still Reformat code breaks form source Product Version: NetBeans IDE Dev (Build 070704) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\Anurdha\.netbeans\dev and Product Version: NetBeans IDE 6.0 M10 (build 200706281431) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\Anurdha\.netbeans\6.0m10 Steps to reproduce: 1) open given Project and open DatasourceConnections.jave 2) reformat code Syntax error in code (additional bracket in after btnModifyMouseReleased() ) PS this code is taken by our module project and some dependency's are missing but it wont make any difference Created attachment 44736 [details]
Project
reproducible in 200707150000 with attached project ... tags : - //GEN-BEGIN: - //GEN-FIRST: - //GEN-BEGIN: are removed from java file. Fixed. Checking in Reformatter.java; /cvs/java/source/src/org/netbeans/modules/java/source/save/Reformatter.java,v <-- Reformatter.java new revision: 1.5; previous revision: 1.4 done Cannot reproduce the second scenario -> marking as verified |