This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247899

Summary: Error reported by Netbeans when implementing the ServletContextAware interface of spring (TestClass is not abstract and does not override abstract method setServletContext(ServletContext) in ServletContextAware)
Product: java Reporter: royteeuwen
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
Screenshot of the (wrongly reported by netbeans) error
Class that extends WebApplicationInitializer

Description royteeuwen 2014-10-13 14:56:25 UTC
Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Mac OS X version 10.10 running on x86_64
Java; VM; Vendor = 1.8.0_20
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Comment 1 royteeuwen 2014-10-13 14:56:29 UTC
Created attachment 149871 [details]
IDE log
Comment 2 royteeuwen 2014-10-13 14:57:40 UTC
Created attachment 149872 [details]
Screenshot of the (wrongly reported by netbeans) error
Comment 3 royteeuwen 2014-10-13 14:58:34 UTC
I tried this on several classes in several projects, the same error occurs in every one.
Comment 4 mandrews 2015-04-13 18:00:09 UTC
Created attachment 153167 [details]
Class that extends WebApplicationInitializer

Screenshot showing mis-reported exception in editor window.
Comment 5 mandrews 2015-04-13 18:05:15 UTC
The same thing happens when implementing org.springframework.web.WebApplicationInitializer (which is required if deploying to a Servlet spec 3+ container and using Spring without a web.xml file). See uploaded screenshot. No exception is reported when doing a build, and there is no exception at runtime.
Comment 6 mandrews 2015-04-13 18:05:40 UTC
Setting the version to 8.0.2
Comment 7 mandrews 2015-04-13 18:06:51 UTC
This does not happen when using 7.4 - so this is isolated to 8.x