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

Summary: [IllegalArgumentException] after copy/paste bean based on Menu to JMenuBar
Product: guibuilder Reporter: Marian Mirilovic <mmirilovic>
Component: CodeAssignee: Tomas Pavek <tpavek>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IllegalArgumentException

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.