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 254067 - Create controller Test Case produces source code errors
Summary: Create controller Test Case produces source code errors
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-02 08:15 UTC by nigel
Modified: 2015-08-02 08:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nigel 2015-08-02 08:15:52 UTC
In a Java Web-Web Application with Spring Web MVC Framework, using the New File Wizard to add (a) Spring Framework|Abstract Controller and (b) Spring Framework|Simple Form Controller produces source code errors.

This is because the generated code uses org.springframework.web.servlet.mvc.SimpleFormController which is not compatible with the Spring Framework Library version in use, namely version 4.0.1.  The error messages can be removed by adding Spring Framework 3.2.7 to the project but: -

(a) I assume that it is not the intention to use an old version of Spring, and

(b) org.springframework.web.servlet.mvc.SimpleFormController is then shown as deprecated in any event.