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 131645 - 2 New lines between import and public class
Summary: 2 New lines between import and public class
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on: 132764 133460
Blocks:
  Show dependency tree
 
Reported: 2008-03-31 16:38 UTC by Lark Fitzgerald
Modified: 2008-06-20 18:47 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 Lark Fitzgerald 2008-03-31 16:38:07 UTC
Product Version: NetBeans IDE Dev (Build 200803191206)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Plugin: CB#249 (2008-03-31_15-09-10.zip)

expect 2 New lines between import and public class

Steps:
1. create new javafx class
2. paste the following source in:

import java.lang.Math; public class Arctangent extends Applet {

3. Format it and you get:

import java.lang.Math; 
public class Arctangent extends Applet {

Expected an extra new line between them. ie

import java.lang.Math; 

public class Arctangent extends Applet {
Comment 1 Rastislav Komara 2008-04-09 15:44:28 UTC
This is based on reformat code feature. Reformat is difficult with lowered priority.
Comment 2 Rastislav Komara 2008-04-23 09:13:27 UTC
rescheduled
Comment 3 Lark Fitzgerald 2008-06-19 14:49:39 UTC
Reformat does nothing using build:
Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
fx NB61 nighly plugin: 269

Logged Jira:
http://openjfx.java.sun.com/jira/browse/JFXC-1383
Comment 4 Rastislav Komara 2008-06-20 10:33:59 UTC
Fixed according to Code Style.
Comment 5 Lark Fitzgerald 2008-06-20 18:47:50 UTC
Verified using:
Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
fx NB61 nighly plugin: 271

As long as there is no AST error in the tree (ie, Applet { has a closing }, then the reformatting will work properly.