[
https://issues.jboss.org/browse/JBIDE-7913?page=com.atlassian.jira.plugin...
]
Feng Qian commented on JBIDE-7913:
----------------------------------
>-for sources generated by under lied tools (by wsconsume in
particular) keep the behaviour as it is now (in the other words let it overwrite code
related to the WSDL, unrelated sources will remain untouched), only >>try to add
some warning (ie "Package x.y already exists, some sources may be overwritten")
for the case when to be generated package is the same as some already existing package
the generated package would not overwrite the existing package, just generate
classes in the existing package. But the classes is truely overwrited.
And we have not a method to know the name of the package before we run the commandline
except you set a packagename. But users sometimes won't give package name, then we
don't know the name.
>for ws implementation class generated by the IDE - if the to be
generated class already exists in the project ask user if he wants to regenerate it
It's ok
>for entry in web.xml - if there is already related entry there
either ask user if he wants to replace it or automagically add new one of form
<name>_1 (perhaps former would be better)
It's ok. But when the generated
classes are some, and the servlet names are same too. If we generated a servlet with
name_1, that's means there two servlet 'name_1' and 'name' preference
a same class.
Top-Down ws wizard overwrites all java classes containing
'@WebService(' string anywhere in the code
----------------------------------------------------------------------------------------------------
Key: JBIDE-7913
URL:
https://issues.jboss.org/browse/JBIDE-7913
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Webservices
Affects Versions: 3.2.0.Beta2
Reporter: Lukas Jungmann
Assignee: Feng Qian
Priority: Blocker
Fix For: 3.2.0.CR1
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
this came up as a result of JBIDE-7681 (see comment from 12/15/10)
-create a new Dynamic web project
-create following interface there:
package x;
import javax.jws.WebService;
@WebService()
public interface Zws {
String test();
}
-create following class there:
package x;
import javax.jws.WebService;
@WebService()
public class ZwsImpl {
public String test() {
return "Hello Dolly!";
}
}
-create some Top-Down ws there using default settings package (use default package)
-open ZwsImpl.java in the editor
=>
Current: ZwsImpl class is rewritten
Expected: the class remains untouched
Note for myself: Check this also for Bottom up case
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira