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.
- Open any wsdl file with portType and partnerLink that reference the portType. - rename the portType. Will see this exception: java.lang.ClassCastException: org.netbeans.modules.xml.wsdl.model.impl.WSDLModelImpl at org.netbeans.modules.bpel.refactoring.Renamer.rename(Renamer.java:85) at org.netbeans.modules.bpel.refactoring.Engine.refactorUsages(Engine.java:165)
This is a regression. Must be fixed
Fixed in release55_dev.
? 1.diff Index: Renamer.java =================================================================== RCS file: /cvs/enterprise/bpel/refactoring/src/org/netbeans/modules/bpel/refactoring/Attic/Renamer.java,v retrieving revision 1.1.2.30.2.1 retrieving revision 1.1.2.30 diff -r1.1.2.30.2.1 -r1.1.2.30 26a27 > import org.netbeans.modules.bpel.model.api.BpelModel; 53d53 < import org.netbeans.modules.xml.xam.Model; 85c85 < Model model = usageGroup.getModel(); --- > BpelModel model = (BpelModel) usageGroup.getModel(); 86a87,88 > // only start transaction is there isn't one.' > boolean startTransaction = ! model.isIntransaction(); 89d90 < boolean doTransaction = !model.isIntransaction(); 92c93 < if (doTransaction) { --- > if (startTransaction) { 98,101c99,101 < } < finally { < if (doTransaction && model.isIntransaction()) { < model.endTransaction(); --- > } finally { > if (startTransaction && model.isIntransaction()) { > model.endTransaction();
Reviewed fix. Looks good. Please integrate into release55.
Fixed in release55 branch.
verified in build 061003.