4 Replies Latest reply on Oct 2, 2008 11:49 AM by pmuir

    Issue - 2.1.0.CR1

    sanghakanwar

      Hi,


      just upgraded to the new version released today and our project build is failing -


      We are overriding these methods in the EntityHome



      @Override
              public String getCreatedMessage() {
                      // TODO Auto-generated method stub
                      return super.getCreatedMessage();
              }
      
              @Override
              public String getDeletedMessage() {
                      // TODO Auto-generated method stub
                      return super.getDeletedMessage();
              }




      Build complains



      C:\Users\prod\src\com\product\sps\session\DiamAppIntfPeerMapHome.java:144: method does not override a method from its superclass
          [javac]     @Override
          [javac]          ^
          
      [javac] C:\Users\prod\workspace\provisioningR5Test\src\com\product\sps\session\DiamAppIntfPeerMapHome.java:151: getDeletedMessage() in com.product.sps.session.DiamAppIntfPeerMapHome cannot override getDeletedMessage() in org.jboss.seam.framework.Home; attempting to use incompatible return type
      
          [javac] found   : java.lang.String
          [javac] required: org.jboss.seam.core.Expressions.ValueExpression
          [javac]     public String getDeletedMessage() {



        • 1. Re: Issue - 2.1.0.CR1
          sanghakanwar

          need to change the signature



          @Override
               public ValueExpression getCreatedMessage() {
                    // TODO Auto-generated method stub
                    if(!flag)
                         return super.getCreatedMessage();
                    else{
                         Expressions expressions = new Expressions();
                         return expressions.createValueExpression("");
                         
          
          
                    }
               }
          


          • 2. Re: Issue - 2.1.0.CR1
            nickarls

            Method signature probably changed, check what it's nowadays. Or remove the @Override but that only gets rid of the compile error, won't still override the correct thing ;-)

            • 3. Re: Issue - 2.1.0.CR1

              So... the created, updated and deleted messages still can not be localized using messages.properties ? Should we file a JIRA for that?

              • 4. Re: Issue - 2.1.0.CR1
                pmuir

                Francisco Peredo wrote on Oct 01, 2008 20:25:


                So... the created, updated and deleted messages still can not be localized using messages.properties ? Should we file a JIRA for that?


                You always have been able to, RTFM.


                https://jira.jboss.org/jira/browse/JBSEAM-3487