matethurzo/liferay-portal — pull request #260 by vilmospapp (2012-09-05 12:07:10+00:00)
Title: [TECHNICAL SUPPORT] LPS-29668 Fixing void return type function calls' UnsupportedOperationException throwing

Hi Máté,

As we discussed ServiceBuilder generated {Entity}LocalServiceClpInvoker doesn't return on successful invoke of functions with void return type but throws an UnsupportedOperationException instead.

I've modified the service_clp_invoker.ftl to handle this situation. The same behaviour should be fixed for {Entity}ServiceClpInvoker as well.

I've tested it with the sample-service-builder-portlet by adding custom funciton and regenerate the service layer then used it from a new MVCPortlet with custom Portlet class with custom function and ActionURL navigation.

The generated code seems correct to me and the test doesn't cause UnsupportedOperationException throws in the log file.

Regards,
Vilmos