A project that uses a webservice from another project always shows errors, in 6.1 if you recompiled or refreshed the ws
client the errors would not be reported anymore. The errors are that the classes of the generated ws client don't exist
thought the project will compile and run correctly. This error also causes the JSF designer to be completely useless.
Right, the issue is easily reproducible.
The workaround is to open properties dialog, change something (e.g. add some library) and close.
Looking for fix.
I found that classpath of the project issn't refreshed after child project is build.
This is a similar (simpler) scenario :
- create a WS client in J2SEApplication project
- use generated classes in Main.java
- clean project
- restart IDE
- generated classes are error badged in Main.java. Project's build doesn't help.
The workaround is to build project, open Properties dialog and close it (no changes are needed in Properties dialog).
In case of two projects, the Properties dialog should be open in project where WS Client is generated.
We need to wait until some support for generated sources is implemented. Se the issue 105645.
This worked in 6.1 so I am guessing that this would be considered a defect, as it is currently marked. The problem I
have with this is that it has been marked as being dependent on an enhancement. How can a defect be dependent on an
enhancement. Also, why would a bug such as this, where it makes the designer unusable, be targeted for 7.0.
Fixed. Regarding CC, the generated sources are now handled as normal sources.
See the issue 105645.