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 46145 - [jdk1.5] Cannot rename file
Summary: [jdk1.5] Cannot rename file
Status: CLOSED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-07-14 14:20 UTC by Lukas Hasik
Modified: 2008-12-22 15:49 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 Lukas Hasik 2004-07-14 14:20:54 UTC
Product Version       = NetBeans IDE Dev (Build
200407131800)
  Operating System      = Windows XP version 5.1
running on x86
  Java; VM; Vendor      = 1.5.0-beta3; Java
HotSpot(TM) Client VM 1.5.0-beta3-b57; Sun
Microsystems Inc.

-have a project, create a new file
[New->File/Folder.. then Other->Empty file]

-try rename this new empty file

*information dialog appears with text 'This object
cannot be renamed from AAA to BBB'
Comment 1 Lukas Hasik 2004-07-14 14:22:47 UTC
feel free to reassign, thanks
jdk1.5 specific, 1.4 works fine
Comment 2 Lukas Hasik 2004-07-14 15:31:57 UTC
:( unable to reproduce after IDE restart or fresh userdir...
Comment 3 Petr Nejedly 2004-07-14 15:48:18 UTC
So probably not JDK specific, only RANDOM?

You'll get this if the node in question refuses setName().
DataNode catches IOExc and forwards it as IllegalArgumentException,
with proper annotation, so it shouldn't be re-annotated to generic 
"This object ...".

Anyway, either there is a bug in DS or the file couldn't be renamed.
And there may also be a bug in ErrorManager?
Comment 4 Petr Nejedly 2004-07-14 15:51:10 UTC
Also probably not P2
Comment 5 Lukas Hasik 2004-07-15 09:34:34 UTC
hard to say if it's jdk specific when it's random, decreasing priority
too. It was easily reproducible until I restarted IDE - so it can happend.
Comment 6 rmatous 2004-08-05 15:06:00 UTC
Works for me. The file probably really couldn't be renamed. It can be
caused by user mistake or by real bug. Hardly to judge, but deginitely
can't be fixed if there isn't possible to simulate it.


As soon as you get into this problem again then try to analyze, find
as much information as you can (if file with new name really exists on
disk and isn't just visible in projects tab, wait a few seconds and
try again, try to rename outside IDE with some file manager and so on)
 and reopen.

WORKSFORME.
Comment 7 Lukas Hasik 2004-08-05 15:44:19 UTC
ok, added incomplete keyword, if it reappears I'll reopen.
Comment 8 Marian Mirilovic 2005-07-12 10:16:17 UTC
closed