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

Summary: Exception when cloning a Bean with unknown elements
Product: ide Reporter: scanti <scanti>
Component: Schema2BeansAssignee: schema2beans-issues@ide <schema2beans-issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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)