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.
This was part of issue 54867 but could not be tested due to a blocking refactoring bug. Rename cmr field using refactoring - field rename is not propagated to sun-cmp-mappings content.
It's very difficult to find the error after renaming CMR field. I'm changing priority to P2 and the issue should be resolved in NB 4.1.
similar to http://www.netbeans.org/issues/show_bug.cgi?id=57171
No, they are not related. I have advised Rajeshwar on the fix.
This issue has been fixed in the trunk. Modified Files: libsrc/org/netbeans/modules/j2ee/sun/share/configBean/EjbJarRoot.java new revision: 1.13; previous revision: 1.12
fixed in trunk so far. Diff is small: D:\src\netbeans\j2ee_all\iplanet\s1dp\netbeans-j2ee\j2ee\appsrv-plugin\libsrc\org\netbeans\modules\j2ee\sun\share\configBean>cvs diff EjbJarRoot.java Index: EjbJarRoot.java =================================================================== RCS file: /m/src/iplanet/s1dp/netbeans-j2ee/j2ee/appsrv-plugin/libsrc/org/netbeans/modules/j2ee/sun/share/configBean/EjbJarRoot.java,v retrieving revision 1.12 diff -r1.12 EjbJarRoot.java 685c685 < if (pfe != null) --- > if (pfe != null){ 686a687,696 > if (pfe instanceof RelationshipElement) > { > RelationshipElement relationship = (RelationshipElement)pfe; > RelationshipElement inverse = > relationship.getInverseRelationship(model); > > if (inverse != null) > inverse.setInverseRelationship(relationship, model); > } > } 1205a1216,1223 > } else if(xpathEvent.isChangeEvent()) { > if (beanName != null) { > PropertyChangeEvent changeEvent = > xpathEvent.getChangeEvent(); > renameMappingForCmpField(beanName, > changeEvent.getOldValue().toString(), > changeEvent.getNewValue().toString()); > } 1207c1225 < } --- > }
Verified in NB trunk 20050410. Please, commit to netbeans4.1 branch.
done in 4.1 branch
[Build 20050413]