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 29398 - "Cannot give untitled_tc_1 an empty name" error after switch to MDI
Summary: "Cannot give untitled_tc_1 an empty name" error after switch to MDI
Status: VERIFIED DUPLICATE of bug 25419
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2002-12-09 10:31 UTC by Jiri Skrivanek
Modified: 2008-12-23 11:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IllegalArgumentException stack trace (4.34 KB, text/plain)
2002-12-09 10:33 UTC, Jiri Skrivanek
Details
IDE log (119.95 KB, text/plain)
2002-12-09 10:34 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2002-12-09 10:31:38 UTC
See attached stack trace and ide.log to detailed
description.
It happens when IDE is switched from SDI to MDI
mode. It is not easy reproducable. Follow steps in
IDE Validation suite at
http://qa.netbeans.org/man-suites/validation/ide/OverallValidation.html
and it happens after 17.1 step.
Comment 1 Jiri Skrivanek 2002-12-09 10:33:11 UTC
Created attachment 8217 [details]
IllegalArgumentException stack trace
Comment 2 Jiri Skrivanek 2002-12-09 10:34:07 UTC
Created attachment 8218 [details]
IDE log
Comment 3 Marian Mirilovic 2003-01-06 13:09:37 UTC
I have changed version from 4.0 dev to S1S 4.2 (Nevada).
Comment 4 mslama 2003-01-07 14:09:58 UTC
In this case InstanceDataObject calls getName() on its instance ie.
TopComponent instance can return empty string. IDO calls rename with
this empty string on DataObject. I think IDO could omit this when its
instance returns empty string from getName(). There is implicit
requirement that instance cannot return empty string from getName().
In our usage of IDO we are not interested in synchronization of
instance name and IDO name. We simply set unique name when we create
it and we do not want/need to change it according to name of instance
(TopComponent).

We do not want to chnage API of TopComponent just because of way how
IDO handles name of its instance.

I do not know where is settings module in IZ so I assign this directly
to J.Pokorsky.
Comment 5 Jan Pokorsky 2003-01-07 14:37:36 UTC
There is the openide/settings subcomponent in IZ.
Comment 6 mslama 2003-01-07 14:39:58 UTC
I see. Thx. :)
Comment 7 Jan Pokorsky 2003-01-07 14:41:06 UTC
Check also the issue #25419, it seems to be a duplicate.
Comment 8 mslama 2003-01-07 15:24:41 UTC
Yes you are right. I knew we already faced such problem but forgot
about that issue.

*** This issue has been marked as a duplicate of 25419 ***
Comment 9 Jiri Skrivanek 2003-07-08 14:20:23 UTC
Verified.