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 253407 - Rename of Java package not working as expected
Summary: Rename of Java package not working as expected
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P4 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-10 14:10 UTC by bolsover
Modified: 2015-07-13 07:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen Grab (19.27 KB, image/jpeg)
2015-07-10 14:10 UTC, bolsover
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bolsover 2015-07-10 14:10:24 UTC
Created attachment 154563 [details]
Screen Grab

Product Version: NetBeans IDE Dev (Build 201507040001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 8 version 6.2 running on amd64; Cp1252; en_GB (nb)

Some strangeness here:

I just created a new Java package by right clicking an existing package in the project navigator, selecting New | Java package and named this 'invoice. No problem so far.

I then right clicked the newly created package to create a New sub package 'gui'.

Rather than create a new package, this second action caused the first created package to be renamed as 'invoice.gui'.  

An attempt to rename 'invoice.gui' to 'invoice' resulted in the package being named 'invoice.invoice'.

Attached screen grab illustrates.

db
Comment 1 bolsover 2015-07-13 07:09:52 UTC
Marking bug as invalid.

I realize now that I has set the package view to reduced tree and that the behaviour observer was actually correct!

Feel like a dork.