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 57460 - Rename cmr field not propagated to cmp mapping
Summary: Rename cmr field not propagated to cmp mapping
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Rajeshwar Patil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-05 00:31 UTC by Rochelle Raccah
Modified: 2006-03-24 12:46 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 Rochelle Raccah 2005-04-05 00:31:34 UTC
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.
Comment 1 Petr Blaha 2005-04-07 14:03:10 UTC
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.
Comment 2 _ ludo 2005-04-08 04:04:13 UTC
similar to http://www.netbeans.org/issues/show_bug.cgi?id=57171 
Comment 3 Rochelle Raccah 2005-04-08 04:06:38 UTC
No, they are not related. I have advised Rajeshwar on the fix.
Comment 4 Rajeshwar Patil 2005-04-08 23:13:55 UTC
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
Comment 5 _ ludo 2005-04-08 23:35:04 UTC
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
<                 }
---
>                  }
Comment 6 Petr Blaha 2005-04-11 20:35:56 UTC
Verified in NB trunk 20050410. Please, commit to netbeans4.1 branch.
Comment 7 _ ludo 2005-04-12 00:47:15 UTC
done in 4.1 branch
Comment 8 Petr Blaha 2005-04-14 08:30:32 UTC
[Build 20050413]