private ActionForward lastAnswerWasYes(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
{
final String value = String.valueOf(GuessController.getInstance().lastAnswerWasYes(mapping, (GuessForm)form, request, response));
if (value.equals("false")) return askForAnimal(mapping, form, request, response);
if (value.equals("true")) return mapping.findForward("i.win.continue");
// we take the last action in case we have an invalid return value from the controller
return iWinContinue(mapping, form, request, response);
}
Since iWinContinue is not a valid method, the compiler threw exception here:
compile:
[javac] Compiling 17 source files to C:\andromda\andromda-bin-3.0M1\ant\myanimalquiz\web\target\classes
[javac] C:\andromda\andromda-bin-3.0M1\ant\myanimalquiz\web\target\src\org\andromda\samples\myanimalquiz\guess\Answe
rQuestionNo.java:117: cannot resolve symbol
[javac] symbol : method iWinContinue (org.apache.struts.action.ActionMapping,org.apache.struts.action.ActionForm,ja
vax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
[javac] location: class org.andromda.samples.myanimalquiz.guess.AnswerQuestionNo
[javac] return iWinContinue(mapping, form, request, response);
[javac] ^


this was a genuine bug and has been fixed in CVS, it will be available in AndroMDA 3.0M2, or in anonymous CVS later tomorrow (24hr lag)

-- Wouter



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to