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/07 20:55:18 UTC

[jira] Created: (BEEHIVE-501) Duplicate compiler messages are created when compiling a pageflow with a duplicate method

Duplicate compiler messages are created when compiling a pageflow with a duplicate method
-----------------------------------------------------------------------------------------

         Key: BEEHIVE-501
         URL: http://issues.apache.org/jira/browse/BEEHIVE-501
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Alejandro Ramirez
 Assigned to: Rich Feit 
    Priority: Minor
     Fix For: V1
 Attachments: Test14.zip

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

-- 
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


[jira] Resolved: (BEEHIVE-501) Duplicate compiler messages are created when compiling certain pageflows

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ 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


[jira] Updated: (BEEHIVE-501) Duplicate compiler messages are created when compiling certain pageflows

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-501?page=history ]

Alejandro Ramirez updated BEEHIVE-501:
--------------------------------------

    Attachment: Test3.zip

> 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: Rich Feit
>     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


[jira] Updated: (BEEHIVE-501) Duplicate compiler messages are created when compiling a pageflow with a duplicate method

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-501?page=history ]

Alejandro Ramirez updated BEEHIVE-501:
--------------------------------------

    Attachment: Test14.zip

> Duplicate compiler messages are created when compiling a pageflow with a duplicate method
> -----------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-501
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-501
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Rich Feit
>     Priority: Minor
>      Fix For: V1
>  Attachments: Test14.zip
>
> 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

-- 
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


[jira] Updated: (BEEHIVE-501) Duplicate compiler messages are created when compiling certain pageflows

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-501?page=history ]

Alejandro Ramirez updated BEEHIVE-501:
--------------------------------------

        Summary: Duplicate compiler messages are created when compiling certain pageflows  (was: Duplicate compiler messages are created when compiling a pageflow with a duplicate method)
    Description: 
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

  was:
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


Generalizing the bug as I've seen the behavior in more than one pageflow.

> 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: Rich Feit
>     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


[jira] Closed: (BEEHIVE-501) Duplicate compiler messages are created when compiling certain pageflows

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ 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