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 180187 - Code formating does not properly format splitted strings
Summary: Code formating does not properly format splitted strings
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-02-03 02:45 UTC by Alexandr Scherbatiy
Modified: 2010-03-29 12:50 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 Alexandr Scherbatiy 2010-02-03 02:45:06 UTC
NetBeans-JavaFX-Soma: #141

  Product Version         = NetBeans IDE Dev (Build 201001280200) (#eeef33500a1a)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Format the code:
-------------------------------------------
public class ClassModel {

    public var pack:String;
    public var name:String;

    public var attributes:String[];
    public var functions:String[];

    function code() {
          "{pack}\n\n"
          "public class {name}\{\n\n"
          "{for(a in attributes) "  {a}\n" }"
          "\n"
          "{for(f in functions) "  {f}\n" }"
          "\n\}"
    }

}
-------------------------------------------

- The result is:
-------------------------------------------
public class ClassModel {

    // ...

    function code() {
        "{pack}\n\n""public class {name}\{\n\n""{for (a in attributes) "  {a}\n"}"
                    "\n"
                    "{for (f in functions) "  {f}\n"}"
                    "\n\}"
                        }

}
-------------------------------------------
Comment 1 Anton Chechel 2010-02-03 09:18:43 UTC
Compiler issue: http://javafx-jira.kenai.com/browse/JFXC-4061
Comment 3 Alexandr Scherbatiy 2010-03-29 12:50:47 UTC
verified in NetBeans-JavaFX-Soma: #200