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 184896 - Formatting Works Incorrectly On Strings
Summary: Formatting Works Incorrectly On Strings
Status: VERIFIED DUPLICATE of bug 183894
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-24 02:04 UTC by digipixel
Modified: 2010-05-13 10:41 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 digipixel 2010-04-24 02:04:20 UTC
Formatting fails to work correctly when an fx source file contains a string with code embedded in it. The result is a few blank lines, which do not prevent the compilation of the source file. Below is some JavaFX Script which causes this to occur:

def num1 = 10;
def num2 = 50;

println("Sum of {num1} and {num2} is: {sum(num1, num2)}");

function sum(num1: Integer, num2: Integer)
{
    return num1 + num2;
}
Comment 1 Anton Chechel 2010-04-24 09:18:45 UTC

*** This bug has been marked as a duplicate of bug 183894 ***
Comment 2 Alexandr Scherbatiy 2010-05-13 10:41:39 UTC
verified in netbeans-trunk-nightly-201005122200-javafx-full-windows.exe