| Summary: | exceptions typing in orm.xml source | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> |
| Component: | General | Assignee: | Paul Fullbright <paul.fullbright> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | neil.hauge |
| Version: | 2.0 | ||
| Target Milestone: | 2.0 M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | 225196 | ||
| Bug Blocks: | |||
|
Description
Karen Butzke
actually the steps to reproduce are: 1.Press enter after the entity closing tag 2.Press enter after the attributes opening tag The original exception does not occurs anymore. But editing anything else in the source file still causes many exceptions. here are new steps to reproduce: Press enter after the entity closing tag. The go inside the attributes tag and add a new attribute, such as id. You will get an exception with every attributes you add and while typing in the name of the attributes. The Attributes resource model object is being recreated when you press enter after the entity closing tag, thus our model gets screwed up. java.lang.NullPointerException at org.eclipse.jpt.core.resource.common.AbstractJpaEObject.featureChanged(AbstractJpaEObject.java:101) at org.eclipse.jpt.core.resource.common.AbstractJpaEObject.eNotify(AbstractJpaEObject.java:95) at org.eclipse.jpt.core.resource.orm.AbstractXmlAttributeMapping.setName(AbstractXmlAttributeMapping.java:112) at org.eclipse.jpt.core.resource.orm.AbstractXmlAttributeMapping.eSet(AbstractXmlAttributeMapping.java:142) at org.eclipse.jpt.core.resource.orm.XmlIdImpl.eSet(XmlIdImpl.java:463) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1071) at org.eclipse.wst.common.internal.emf.utilities.ExtendedEcoreUtil.eSetOrAdd(ExtendedEcoreUtil.java:79) at org.eclipse.wst.common.internal.emf.resource.Translator.setMOFValue(Translator.java:612) at org.eclipse.wst.common.internal.emf.resource.Translator.setMOFValue(Translator.java:627) at org.eclipse.wst.common.internal.emf.resource.EMF2DOMAdapterImpl.primUpdateMOFFeature(EMF2DOMAdapterImpl.java:1436) at org.eclipse.wst.common.internal.emf.resource.EMF2DOMAdapterImpl.updateMOFFeature(EMF2DOMAdapterImpl.java:1779) at org.eclipse.wst.xml.core.internal.emf2xml.EMF2DOMSSEAdapter.notifyChanged(EMF2DOMSSEAdapter.java:233) underlying bug 225196 was fixed, I have verified this bug is fixed in the latest WTP ibuild |