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 158086 - Anonymous classes are not properly formatted
Summary: Anonymous classes are not properly formatted
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 155841
  Show dependency tree
 
Reported: 2009-02-06 15:25 UTC by Alexandr Scherbatiy
Modified: 2009-03-25 10:14 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 2009-02-06 15:25:31 UTC
JavaFX_NB_Plugin_Franca_NB_65_fixes_promoted_SDK_installer: JavaFX SDK Promoted Build b07

  Product Version         = NetBeans IDE 6.5 (Build 200901261116)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_12-ea; Java HotSpot(TM) Client VM 11.2-b01; Sun Microsystems Inc.


Steps to reproduce:

- Copy the code to the editor:
---------------------------------------------
import java.io.*;

var imagesDir: File = new File ("resources");

var imageFiles: File[] = imagesDir.listFiles( FileFilter{
        override function accept(pathname:File){
            not pathname.getName().endsWith("Thumbs.db");
        }
    }
);
---------------------------------------------

- Format it
The result is:
---------------------------------------------
var imageFiles: File[] = imagesDir.listFiles
    
    ( FileFilter{
        override function accept(pathname:File){
            not pathname.getName().endsWith("Thumbs.db");
        }
}
);
---------------------------------------------
Comment 1 Rastislav Komara 2009-03-02 10:11:50 UTC
reassigning to new owner.
Comment 2 Anton Chechel 2009-03-19 18:26:04 UTC
fixed, old reformat has been disabled
Comment 3 Alexandr Scherbatiy 2009-03-25 10:14:33 UTC
verified