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 210110 - [72cat] Can't rename a package using the new package view
Summary: [72cat] Can't rename a package using the new package view
Status: RESOLVED DUPLICATE of bug 210107
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 13:52 UTC by Michel Graciano
Modified: 2012-03-28 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (23.77 KB, application/zip)
2012-03-26 13:54 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-03-26 13:52:40 UTC
[ BUILD # : 34d2eb3db637 ]
[ JDK VERSION : 1.7.3 ]

If I try to rename the base package using the new package view, it does not
work. I will attach a project sample about how to reproduce it.
Comment 1 Michel Graciano 2012-03-26 13:54:53 UTC
Created attachment 117253 [details]
Sample project

1. Open the sample project attached;
2. Switch your package view for Reduce Tree;
3. Try to rename the package br.com.refactoring using F2 shortcut to br.com.refactoring.packt, just addinf .packt at the tree editor and hit enter;

The presented package will be .br.com.refactoring which is an invalid package.
Comment 2 Michel Graciano 2012-03-26 13:55:17 UTC
The workaround is to do not use the new package view.
Comment 3 MackSix 2012-03-28 14:24:14 UTC
It does not work for me in Windows Visa either. I get a "rename" dialog that pops up. The new name I type does not transfer to the "rename" dialog box that pops up. The dialog box allows me to rename it there, but this is regression because it works fine in 7.1.1. 

Product Version: NetBeans IDE Dev (Build 201203280401)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 4 Jan Becicka 2012-03-28 14:27:48 UTC

*** This bug has been marked as a duplicate of bug 210107 ***
Comment 5 Michel Graciano 2012-03-28 14:30:18 UTC
Jan, are you sure it is a duplicated one? The behaviour is pretty different, that is why I filed different issues.
Comment 6 Michel Graciano 2012-03-28 14:33:07 UTC
(In reply to comment #3)
> It does not work for me in Windows Visa either. I get a "rename" dialog that
> pops up. The new name I type does not transfer to the "rename" dialog box that
> pops up. The dialog box allows me to rename it there, but this is regression
> because it works fine in 7.1.1. 
> 
> Product Version: NetBeans IDE Dev (Build 201203280401)
> Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
> System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

Maybe you are talking about issue #210113? I have filed all these issues because the behaviour are different, so maybe the cause could be too.
Comment 7 MackSix 2012-03-28 14:38:17 UTC
(In reply to comment #6)
> (In reply to comment #3)
> > It does not work for me in Windows Visa either. I get a "rename" dialog that
> > pops up. The new name I type does not transfer to the "rename" dialog box that
> > pops up. The dialog box allows me to rename it there, but this is regression
> > because it works fine in 7.1.1. 
> > 
> > Product Version: NetBeans IDE Dev (Build 201203280401)
> > Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
> > System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
> 
> Maybe you are talking about issue #210113? I have filed all these issues
> because the behaviour are different, so maybe the cause could be too.

Yes, that description is more exact as to what I see.