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 21351 - [IllegalArgumentException] after copy/paste bean based on Menu to JMenuBar
Summary: [IllegalArgumentException] after copy/paste bean based on Menu to JMenuBar
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-08 12:24 UTC by Marian Mirilovic
Modified: 2003-06-30 18:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IllegalArgumentException (3.91 KB, text/plain)
2002-03-08 12:25 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2002-03-08 12:24:15 UTC
[nb_dev](20020308), [jdk1.4.1](04)

Steps to reproduce:
- create bean based on JMenu
- add JMenuBar (is added to OtherComponents)
- copy JMenu and try topaset into jMenuBar1
-> IllegalArgumentException(attachment) arise 

Yes, you are right this isn't implicit behaviour, but I would only get point to
creating JMenu2 in the variables declaration after failing copy, it should be
removed after failing.
Comment 1 Marian Mirilovic 2002-03-08 12:25:37 UTC
Created attachment 4999 [details]
IllegalArgumentException
Comment 2 Tomas Pavek 2002-06-07 11:28:35 UTC
Fixed - I've disabled copying in the described case.
The reason why it is not possible is tracked in issue 
14785.
Comment 3 Marian Mirilovic 2002-06-10 12:57:59 UTC
verified in [nb_dev](20020610)
Comment 4 Quality Engineering 2003-06-30 18:26:54 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.