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 187237

Summary: "Create function" hint creates function in wrong file
Product: javafx Reporter: rmichalsky <rmichalsky>
Component: EditorAssignee: Karol Harezlak <kharezlak>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description rmichalsky 2010-06-06 11:55:22 UTC
Steps to reproduce:

1) create empty JavaFX project with main script file with run(args: String[]) function (no class)
2) create empty class named A in file A.fx in the same package
3) put code:
      var a = A {}
      a.foo();
   into run function
4) Alt-Enter on line "a.foo();" and select "Create function foo in A"
5) function foo() is created in main script file instead in A.fx

NB 6.9 beta with bundled JavaFX SDK.
Comment 1 Karol Harezlak 2010-06-07 12:54:16 UTC
fixed before RC, not reproducible in RC2
Comment 2 Alexandr Scherbatiy 2010-06-17 11:09:36 UTC
verified in NetBeans IDE Dev (Build 201006170001)

The hint is not suggested now.