You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org> on 2005/04/27 01:14:28 UTC
[jira] Closed: (BEEHIVE-501) Duplicate compiler messages are created when compiling certain pageflows
[ http://issues.apache.org/jira/browse/BEEHIVE-501?page=all ]
Alejandro Ramirez closed BEEHIVE-501:
-------------------------------------
Verified fixed. I no longer get the duplicate errors in the second case.
However, I still get the dup errors in the first case, but that, as Rich mentioned, is apt output that beehive netui has no control over.
> 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira