EJB3 ServiceDelegate.vsl: Compiler fails with "unreachable statement" ----------------------------------------------------------------------
Key: EJB-37 URL: http://jira.andromda.org/browse/EJB-37 Project: EJB Cartridge Type: Bug Environment: Andromda 3.2, EJB3 very latest from CVS Reporter: Torsten Lunze Assigned to: Vance Karimi If the service function has a return value the following is generated: switch (getViewType()) { case LOCAL_VIEW_TYPE: return getCosiTicketSubmissionLocal().submitTicketOrder(ticketOrder); break; case REMOTE_VIEW_TYPE: default: return getCosiTicketSubmissionRemote().submitTicketOrder(ticketOrder); breaK, } The compiler is complaining about the break, because it can never be reached. Adding the following to ServiceDelegate.vsl works: #if (!$operation.returnTypePresent)break;#end (Only add the break if it has not been a return statement) Torsten -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642