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 90343 - Uncompilable code when moving java file by DnD
Summary: Uncompilable code when moving java file by DnD
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
: 90032 91266 (view as bug list)
Depends on:
Blocks: 90607
  Show dependency tree
 
Reported: 2006-11-30 12:15 UTC by Jaromir Uhrik
Modified: 2007-01-17 10:09 UTC (History)
1 user (show)

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 Jaromir Uhrik 2006-11-30 12:15:58 UTC
NetBeans IDE Dev (Build 200611300230)
1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-64
Mac OS X version 10.4.8 running on ppc
en_US (nb); MacRoman

1.Create new j2se project p1
2.Create class p1.XYZclass and drop it to "Source Packages" node
3.Push Next
4.Push "Do Reafactoring" button 
The firs code line is: 
package ;
This is why the code is not compilable
Comment 1 Jan Becicka 2006-12-12 19:35:36 UTC
Pavle, can you handle empty package names ("") as a default package and omit
package declaration?
Thanks
Comment 2 Jan Becicka 2006-12-18 19:00:45 UTC
*** Issue 90032 has been marked as a duplicate of this issue. ***
Comment 3 Pavel Flaska 2006-12-20 13:42:50 UTC
Part connected to generator fixed:

Checking in org/netbeans/modules/java/source/save/CasualDiff.java;
/cvs/java/source/src/org/netbeans/modules/java/source/save/CasualDiff.java,v 
<--  CasualDiff.java
new revision: 1.18; previous revision: 1.17
done
Comment 4 Pavel Flaska 2006-12-20 13:44:35 UTC
Finally refactoring part fixed.

Checking in src/org/netbeans/modules/refactoring/java/plugins/MoveTransformer.java;
/cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/plugins/MoveTransformer.java,v
 <--  MoveTransformer.java
new revision: 1.5; previous revision: 1.4
done
Comment 5 Andrei Badea 2006-12-20 15:08:42 UTC
*** Issue 91266 has been marked as a duplicate of this issue. ***
Comment 6 Jaromir Uhrik 2007-01-08 16:43:14 UTC
Verified in following build and configuration:
NetBeans IDE Dev (Build 200701071900)
1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-64
Mac OS X version 10.4.8 running on ppc
en_US (nb); MacRoman