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 - [Refactoring] Move to default package corrupts the source
Summary: [Refactoring] Move to default package corrupts the source
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC All
: P1 normal (vote)
Assignee: J Bachorik
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-04-14 09:43 UTC by J Bachorik
Modified: 2010-04-20 07:33 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 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