You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2008/01/16 15:04:55 UTC

[OT] Re: Netbeans 6.0 Editor Error with struts2 library

What happens if you annotate it with @Override?

d.

--- Igor Vlasov <vi...@mail.ru> wrote:

> 
> Hello.
> 
> I have installed a netbeans 6 on jdk6u4 and  all recent updates for it.
> 
> Then i Try to implement an interface in my custom class.
> 
> public class Site1AuthAction  implements ServletRequestAware{
>  public void setServletRequest(HttpServletRequest request) {
>    
>   }
> }
> 
> I get strarge editor warning in my UI Interface:
> <h3>"Site1AuthAction is not abstract and does not override abstract method
> setServletRequest(HttpServletRequest) in 
> org.apache.struts2.interceptor.ServletRequestAware</h3>
> 
> This is the screenshot:  http://www.nabble.com/file/p14878230/nbgluck.JPG
> nbgluck.JPG 
> 
> BUT it compiles to valid Class and looks good.
> 
> In Netbeans 5.5 and 5.5.1  all is working fine
> 
> 
> Anyone have such problem ?
> 
> 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Netbeans-6.0-Editor-Error-with-struts2-library-tp14878230p14878230.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [OT] Re: Netbeans 6.0 Editor Error with struts2 library

Posted by Igor Vlasov <vi...@mail.ru>.
If I write:

 @Override
 public void setServletRequest(HttpServletRequest request) {
    this.req = request;
  }

then I got "method does not override or implement a method from a supertype"




newton.dave wrote:
> 
> What happens if you annotate it with @Override?
> 
> d.
> 
> --- Igor Vlasov <vi...@mail.ru> wrote:
> 
>> 
>> Hello.
>> 
>> I have installed a netbeans 6 on jdk6u4 and  all recent updates for it.
>> 
>> Then i Try to implement an interface in my custom class.
>> 
>> public class Site1AuthAction  implements ServletRequestAware{
>     protected HttpServletRequest req;
>>  public void setServletRequest(HttpServletRequest request) {
>>    this.req = request;
>>   }
>> }
>> 
>> I get strarge editor warning in my UI Interface:
>> <h3>"Site1AuthAction is not abstract and does not override abstract
>> method
>> setServletRequest(HttpServletRequest) in 
>> org.apache.struts2.interceptor.ServletRequestAware</h3>
>> 
>> This is the screenshot:  http://www.nabble.com/file/p14878230/nbgluck.JPG
>> nbgluck.JPG 
>> 
>> BUT it compiles to valid Class and looks good.
>> 
>> In Netbeans 5.5 and 5.5.1  all is working fine
>> 
>> 
>> Anyone have such problem ?
>> 
>> 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/Netbeans-6.0-Editor-Error-with-struts2-library-tp14878230p14878230.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Netbeans-6.0-Editor-Error-with-struts2-library-tp14878230p14913539.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org