rotty3000/liferay-portal — pull request #625 by zsigmondrab (2014-10-09 08:46:28+00:00)
Title: LPS-27710 Service Builder can not create Entities that contain "Error" or "Package" in its name

Hi Ray,

I think, you are the best person to send this Service Builder related pull request which concerns the *ModwlWrapper class generation, but please direct me to anyone else who can check this.

The problem persists in case of using a name of any classes from the java.lang package.

The designation of the return and parameter objects gives a wrong type back when there is a class in the java.lang package with the same name as the entity has during the generation of the *ModelWrapper classes. It's done by qDox's JavaClass class' getMethods method from the *Model class (http://qdox.codehaus.org). Somehow, it determine the object as it would be the one in the java.lang package if there is simple the entity's name in the *Model class when the entity.name is used.

I'm not sure if modifying our code because of a a third party effect is the best way, and I don't know the exact reason why the third party is working in this way, however this solution seemed to be the easiest one.

Besides, this modification results a complete service regeneration at the end. I wouldn't like to do that until I got some feedback if this may be the right way.

Thank you,
Zsigmond