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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to