[ http://issues.apache.org/jira/browse/BEEHIVE-501?page=history ] Rich Feit resolved BEEHIVE-501: -------------------------------
Assign To: Alejandro Ramirez (was: Rich Feit) Resolution: Fixed Fixed with revision 161371. Note that the first error is from apt/javac -- there's nothing I can do about it. But I did remove the duplicate errors throughout our annotation processing code -- forwards, simple actions, catches, etc. > Duplicate compiler messages are created when compiling certain pageflows > ------------------------------------------------------------------------ > > Key: BEEHIVE-501 > URL: http://issues.apache.org/jira/browse/BEEHIVE-501 > Project: Beehive > Type: Bug > Components: NetUI > Versions: V1 > Reporter: Alejandro Ramirez > Assignee: Alejandro Ramirez > Priority: Minor > Fix For: V1 > Attachments: Test14.zip, Test3.zip > > Rich, I'm updating this bug to make it general (since I've seen similar > behaviour in at least 2 cases now). > The first case is: > 1.- Unzip the attached pageflow into a beehive enabled webapp. > 2.- Compile your webapp > Expected: There should be a compiler error thrown since the attached pageflow > contains a method with the same signature twice (although different > implementations): > METHOD 1: > protected Forward page2() > { > return new Forward("pg2"); > } > METHOD 2: > protected Forward page2() > { > return new Forward("pg3"); > } > The expected compiler error is: > [apt] > D:\temp\beehiveSharedFlows\WEB-INF\.tmpbeansrc\Test14\Controller.java:47: > page2() is already defined in Test14.Controller > [apt] protected Forward page2() > [apt] ^ > [apt] 1 error > Actual: The compiler error displayed is correct. However, it is displayed > twice: > [apt] > D:\temp\beehiveSharedFlows\WEB-INF\.tmpbeansrc\Test14\Controller.java:47: > page2() is already defined in Test14.Controller > [apt] protected Forward page2() > [apt] ^ > [apt] > D:\temp\beehiveSharedFlows\WEB-INF\.tmpbeansrc\Test14\Controller.java:47: > page2() is already defined in Test14.Controller > [apt] protected Forward page2() > [apt] ^ > [apt] 1 error > The Second Case is: > 1.- Unzip the attached pageflow (Test3.zip) into a beehive enabled webapp. > 2.- Compile your webapp > Expected: There should be a compiler error thrown since the attached pageflow > contains an ActionForward method named "page1" that declares two forwards of > the same name. > @Jpf.Action( > forwards = { > @Jpf.Forward(name = "pg1",path = "Pg1.jsp"), > @Jpf.Forward(name = "pg1",path = "Pg1.jsp") > }) > protected Forward page1() > { > return new Forward("pg1"); > } > Actual: The compiler error message is thrown. However, it is thrown twice: > [apt] > D:\temp\beehiveSharedFlows\WEB-INF\.tmpbeansrc\Test3\Controller.java:38: > Duplicate Forward tag with name="pg1". > [apt] protected Forward page1() > [apt] ^ > [apt] > D:\temp\beehiveSharedFlows\WEB-INF\.tmpbeansrc\Test3\Controller.java:38: > Duplicate Forward tag with name="pg1". > [apt] protected Forward page1() > [apt] ^ > [apt] 2 errors -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira