[ http://team.andromda.org:8080/jira/browse/BPM-117?page=comments#action_10455 ] Wouter Zoons commented on BPM-117: ----------------------------------
you're right about this CCE .. I'll make sure it's replaced by a validation message > Classcast exception is usecase doesnt have FrontEndUsecase stereotype > --------------------------------------------------------------------- > > Key: BPM-117 > URL: http://team.andromda.org:8080/jira/browse/BPM-117 > Project: Bpm4Struts Cartridge > Type: Bug > Reporter: Martin West > Assignee: Wouter Zoons > > > If a use case has a controller with a FrontEndController stereotype but the > usecase doesnt have the FronEndUsecase stereotype then a classcast expection > occurs in StrutsController#getUseCase. I tried this change but it then falls > over at StrutsControllerOperationLogicImpl.java:62 with a null pointer. I'll > leave to wiser heads. > /** > * @see > org.andromda.cartridges.bpm4struts.metafacades.StrutsController#getUseCase() > */ > protected Object handleGetUseCase() > { > StrutsUseCase useCase = null; > final Collection useCases = getModel().getAllUseCases(); > for (Iterator iterator = useCases.iterator(); iterator.hasNext() && > useCase==null;) > { > Object item = iterator.next(); > if ( StrutsUseCase.class.isAssignableFrom( item.getClass() ) ) { > StrutsUseCase strutsUseCase = (StrutsUseCase) item; > if (this.equals(strutsUseCase.getController())) > { > useCase = strutsUseCase; > } > } > } > return useCase; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://team.andromda.org:8080/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Andromda-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-devel
