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.
Hi, I have 3 projects: - Mobile Library - Mobile Application - Web Application with JSF support The library is actually used by both the Mobile Application and the Web Application, thus ensuring I have the same classes at both ends when adding a webclient to the Mobile Application. Now when I add a webclient to the Mobile Application, I select a class in the Web Application that is to be the interface to the web backend and start generating the code. Now what I witness is that in my Mobile Application a package is generated with the same name as the package in the Mobile Library project that contains the classes that are used by both application projects. In addition, the newly generated package contains those classes as well, but they are empty. Thus after the generation of the mobile web client, the Mobile Application project doesn't compile and I have to delete the generated package and then it all works again. Iwan
reassigning to the right Michal
Implementing this feature is pretty tricky. The code generator should check all server and client parameter types one by one including check for parameter and their respective types to see whether they are completely equal on the API level (code level check does not have sense). Even after this check the generator will not have absolute control whether the called classes on the client side are correct. Therefore the actual generator is designed to create client classes from scratch as "data mirror" for the server classes. I'm setting this as feature for next versions.