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 184118

Summary: [Refactoring] Move to default package corrupts the source
Product: javafx Reporter: J Bachorik <yardus>
Component: UnsupportedAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: normal Keywords: REGRESSION
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description J Bachorik 2010-04-14 09:43:05 UTC
When moving a class to the default package the refactored source code begins
with "package ;". Which results in a compilation error.

--------------------------------------------------------------------------------

package ; <= compilation error

import javafx.scene.CustomNode;
import javafx.scene.Node;
import javafx.scene.text.Text;
import javafx.scene.Group;

class Test extends CustomNode {
    override protected function create () : Node {
        Text {
            content: "testing..."
        }
    }
}

def test:Node = Test{};
def isGroup = test instanceof Group;
Comment 1 J Bachorik 2010-04-14 09:46:15 UTC
fixed in http://hg.netbeans.org/javafx/rev/4e241dffd5e6
Comment 2 Alexandr Scherbatiy 2010-04-16 10:29:33 UTC
verified in NetBeans-JavaFX-Soma: #221
Comment 3 J Bachorik 2010-04-20 07:33:38 UTC
http://hg.netbeans.org/javafx/rev/0bce2d85bc53 addresses some outstanding issues in moving to/from default package