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.
see attachment
Created attachment 54317 [details] cpd output
Created attachment 54342 [details] proposed patch
insertMethodCall(...) and insertMethod(...) are almost the same (I've found there only one major difference - the first method call also addProjectReference(...) method). Attached patch simplifies this, but should be carefully reviewed to avoid possible regression(s), which could be caused by some already fixed issue in one method, but not in the other, if you want to apply it. Anyway the patch removes ~230 lines of mostly duplicated/cut&pasted code.
Patch applied. See the diff: http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/jaxws/actions/JaxWsCodeGenerator.java?r1=1.26&r2=1.27 Tnanks.
v.