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 243895 - Exception when cloning a Bean with unknown elements
Summary: Exception when cloning a Bean with unknown elements
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Schema2Beans (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: schema2beans-issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-17 17:52 UTC by scanti
Modified: 2014-04-17 17:52 UTC (History)
0 users

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 scanti 2014-04-17 17:52:33 UTC
I have an XML file generated with the newest version of my XML-Schema.

I tried to open it with the beans generated from an older XML-Schema. It worked flawlessly, but when I called .clone() on the root node I got this exception:  

java.lang.IllegalArgumentException: Unknown attribute ExcludeWellsWhenOFIncreases for property Automatic
	at org.netbeans.modules.schema2beans.BeanProp.getAttrProp(BeanProp.java:1250)
	at org.netbeans.modules.schema2beans.BeanProp.getAttrProp(BeanProp.java:1261)
	at org.netbeans.modules.schema2beans.BeanProp.setAttributeValue(BeanProp.java:1268)
	at org.netbeans.modules.schema2beans.BeanProp.setElement(BeanProp.java:1079)
	at org.netbeans.modules.schema2beans.BeanProp.setValue(BeanProp.java:812)
	at org.netbeans.modules.schema2beans.BaseBean.setValue(BaseBean.java:471)
	at org.netbeans.modules.schema2beans.BaseBean.setValue(BaseBean.java:460)
	at org.netbeans.modules.schema2beans.BaseBean.clone(BaseBean.java:1328)