Skip to content

Spring4 MVC Unit test does not compile [SPR-11238] #15863

@spring-projects-issues

Description

@spring-projects-issues

Kent Yeh opened SPR-11238 and commented

I have same problem
when I running under jdk 1.6.0_33 with error

[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /mavenrepository/org/springframework/spring-context/4.0.0.RELEASE/spring-context-4.0.0.RELEASE.jar!org/springframework/scheduling/annotation/Scheduled.class: org/springframework/scheduling/annotation/Scheduled.class(org/springframework/scheduling/annotation:Scheduled.class): warning: Cannot find annotation method 'value()' in type 'java.lang.annotation.Repeatable': class file for java.lang.annotation.Repeatable not found
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /ttsrc/git/kmlgen/src/test/java/kml/controller/TestDefaultController.java:[81,42] incompatible types; inferred type argument(s) java.lang.Object do not conform to bounds of type variable(s) B
found   : <B>org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder<B>
required: java.lang.Object

Affects: 4.0 GA

Reference URL: http://stackoverflow.com/questions/20574894/spring4-mvc-unit-test-does-not-compile

Attachments:

Issue Links:

Referenced from: commits 2e4f38f

0 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

in: testIssues in the test modulein: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions