Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit 4bbcbdc

Browse files
committed
Merge pull request #24 from dsyer/SPR-9498
SPR-9498: test case (one fails and one succeeds)
2 parents 189ba5b + 3f38001 commit 4bbcbdc

File tree

9 files changed

+496
-0
lines changed

9 files changed

+496
-0
lines changed

SPR-9498/pom.xml

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>org.springframework.issues</groupId>
5+
<artifactId>SPR-9498</artifactId>
6+
<version>1.0-SNAPSHOT</version>
7+
<name>Spring MVC Issue Reproduction Project</name>
8+
<packaging>jar</packaging>
9+
10+
<properties>
11+
<java-version>1.6</java-version>
12+
<org.springframework-version>3.2.0.BUILD-SNAPSHOT</org.springframework-version>
13+
<org.slf4j-version>1.6.1</org.slf4j-version>
14+
</properties>
15+
16+
<dependencies>
17+
<!-- Spring Framework -->
18+
<dependency>
19+
<groupId>org.springframework</groupId>
20+
<artifactId>spring-context</artifactId>
21+
<version>${org.springframework-version}</version>
22+
<exclusions>
23+
<!-- Exclude Commons Logging in favor of SLF4j -->
24+
<exclusion>
25+
<groupId>commons-logging</groupId>
26+
<artifactId>commons-logging</artifactId>
27+
</exclusion>
28+
</exclusions>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.springframework</groupId>
32+
<artifactId>spring-webmvc</artifactId>
33+
<version>${org.springframework-version}</version>
34+
</dependency>
35+
36+
<dependency>
37+
<groupId>aopalliance</groupId>
38+
<artifactId>aopalliance</artifactId>
39+
<version>1.0</version>
40+
</dependency>
41+
42+
<!-- Logging -->
43+
<dependency>
44+
<groupId>org.slf4j</groupId>
45+
<artifactId>slf4j-api</artifactId>
46+
<version>${org.slf4j-version}</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.slf4j</groupId>
50+
<artifactId>jcl-over-slf4j</artifactId>
51+
<version>${org.slf4j-version}</version>
52+
<scope>runtime</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.slf4j</groupId>
56+
<artifactId>slf4j-log4j12</artifactId>
57+
<version>${org.slf4j-version}</version>
58+
<scope>runtime</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>log4j</groupId>
62+
<artifactId>log4j</artifactId>
63+
<version>1.2.16</version>
64+
<scope>runtime</scope>
65+
</dependency>
66+
67+
<!-- Servlet API -->
68+
<dependency>
69+
<groupId>javax.servlet</groupId>
70+
<artifactId>javax.servlet-api</artifactId>
71+
<version>3.0.1</version>
72+
<scope>provided</scope>
73+
</dependency>
74+
75+
<!-- JSP API and JSTL
76+
<dependency>
77+
<groupId>javax.servlet.jsp</groupId>
78+
<artifactId>jsp-api</artifactId>
79+
<version>2.1</version>
80+
<scope>provided</scope>
81+
</dependency>
82+
<dependency>
83+
<groupId>javax.servlet</groupId>
84+
<artifactId>jstl</artifactId>
85+
<version>1.2</version>
86+
</dependency>
87+
-->
88+
89+
<!-- Apache Tiles
90+
<dependency>
91+
<groupId>org.apache.tiles</groupId>
92+
<artifactId>tiles-jsp</artifactId>
93+
<version>2.1.3</version>
94+
<exclusions>
95+
<exclusion>
96+
<groupId>commons-logging</groupId>
97+
<artifactId>commons-logging-api</artifactId>
98+
</exclusion>
99+
</exclusions>
100+
</dependency>
101+
-->
102+
103+
<!-- JSR 303 with Hibernate Validator
104+
<dependency>
105+
<groupId>javax.validation</groupId>
106+
<artifactId>validation-api</artifactId>
107+
<version>1.0.0.GA</version>
108+
</dependency>
109+
<dependency>
110+
<groupId>org.hibernate</groupId>
111+
<artifactId>hibernate-validator</artifactId>
112+
<version>4.1.0.Final</version>
113+
</dependency>
114+
-->
115+
116+
<!-- Joda Time Library
117+
<dependency>
118+
<groupId>joda-time</groupId>
119+
<artifactId>joda-time</artifactId>
120+
<version>1.6.2</version>
121+
</dependency>
122+
<dependency>
123+
<groupId>joda-time</groupId>
124+
<artifactId>joda-time-jsptags</artifactId>
125+
<version>1.0.2</version>
126+
<scope>runtime</scope>
127+
</dependency>
128+
-->
129+
130+
<!-- Apache Commons File Upload
131+
<dependency>
132+
<groupId>commons-fileupload</groupId>
133+
<artifactId>commons-fileupload</artifactId>
134+
<version>1.2.2</version>
135+
</dependency>
136+
<dependency>
137+
<groupId>commons-io</groupId>
138+
<artifactId>commons-io</artifactId>
139+
<version>2.0.1</version>
140+
</dependency>
141+
-->
142+
143+
<!-- Jackson JSON Processor
144+
<dependency>
145+
<groupId>org.codehaus.jackson</groupId>
146+
<artifactId>jackson-mapper-asl</artifactId>
147+
<version>1.8.1</version>
148+
</dependency>
149+
-->
150+
151+
<!-- Rome Atom+RSS
152+
<dependency>
153+
<groupId>rome</groupId>
154+
<artifactId>rome</artifactId>
155+
<version>1.0</version>
156+
</dependency>
157+
-->
158+
159+
<!-- Test -->
160+
<dependency>
161+
<groupId>org.springframework</groupId>
162+
<artifactId>spring-test</artifactId>
163+
<version>${org.springframework-version}</version>
164+
<scope>test</scope>
165+
</dependency>
166+
<dependency>
167+
<groupId>junit</groupId>
168+
<artifactId>junit</artifactId>
169+
<version>4.8</version>
170+
<scope>test</scope>
171+
</dependency>
172+
</dependencies>
173+
174+
<repositories>
175+
<repository>
176+
<id>spring-maven-snapshot</id>
177+
<name>Springframework Maven Snapshot Repository</name>
178+
<url>http://repo.springsource.org/snapshot</url>
179+
<snapshots>
180+
<enabled>true</enabled>
181+
</snapshots>
182+
</repository>
183+
</repositories>
184+
185+
<build>
186+
<plugins>
187+
<plugin>
188+
<artifactId>maven-compiler-plugin</artifactId>
189+
<configuration>
190+
<source>${java-version}</source>
191+
<target>${java-version}</target>
192+
</configuration>
193+
</plugin>
194+
<plugin>
195+
<groupId>org.apache.maven.plugins</groupId>
196+
<artifactId>maven-dependency-plugin</artifactId>
197+
<executions>
198+
<execution>
199+
<id>install</id>
200+
<phase>install</phase>
201+
<goals>
202+
<goal>sources</goal>
203+
</goals>
204+
</execution>
205+
</executions>
206+
</plugin>
207+
<plugin>
208+
<groupId>org.apache.maven.plugins</groupId>
209+
<artifactId>maven-eclipse-plugin</artifactId>
210+
<version>2.8</version>
211+
<configuration>
212+
<downloadSources>true</downloadSources>
213+
<downloadJavadocs>false</downloadJavadocs>
214+
<wtpversion>2.0</wtpversion>
215+
</configuration>
216+
</plugin>
217+
<plugin>
218+
<artifactId>maven-surefire-plugin</artifactId>
219+
<configuration>
220+
<includes>
221+
<include>**/*Tests.java</include>
222+
</includes>
223+
<excludes>
224+
<exclude>**/*Abstract*.java</exclude>
225+
</excludes>
226+
</configuration>
227+
</plugin>
228+
</plugins>
229+
</build>
230+
231+
</project>
232+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Cloud Foundry 2012.02.03 Beta
3+
* Copyright (c) [2009-2012] VMware, Inc. All Rights Reserved.
4+
*
5+
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
6+
* You may not use this product except in compliance with the License.
7+
*
8+
* This product includes a number of subcomponents with
9+
* separate copyright notices and license terms. Your use of these
10+
* subcomponents is subject to the terms and conditions of the
11+
* subcomponent's license, as noted in the LICENSE file.
12+
*/
13+
14+
package org.springframework.issues;
15+
16+
import org.springframework.util.MultiValueMap;
17+
18+
/**
19+
* @author Dave Syer
20+
*
21+
*/
22+
public interface Bar extends MultiValueMap< String, String> {
23+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Cloud Foundry 2012.02.03 Beta
3+
* Copyright (c) [2009-2012] VMware, Inc. All Rights Reserved.
4+
*
5+
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
6+
* You may not use this product except in compliance with the License.
7+
*
8+
* This product includes a number of subcomponents with
9+
* separate copyright notices and license terms. Your use of these
10+
* subcomponents is subject to the terms and conditions of the
11+
* subcomponent's license, as noted in the LICENSE file.
12+
*/
13+
14+
package org.springframework.issues;
15+
16+
import java.util.Arrays;
17+
import java.util.Map;
18+
19+
import org.springframework.util.LinkedMultiValueMap;
20+
21+
/**
22+
* @author Dave Syer
23+
*
24+
*/
25+
public class DefaultBar extends LinkedMultiValueMap<String, String> implements Bar {
26+
27+
public DefaultBar(Map<String, String[]> parameters) {
28+
for (String key : parameters.keySet()) {
29+
super.put(key, Arrays.asList(parameters.get(key)));
30+
}
31+
}
32+
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Cloud Foundry 2012.02.03 Beta
3+
* Copyright (c) [2009-2012] VMware, Inc. All Rights Reserved.
4+
*
5+
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
6+
* You may not use this product except in compliance with the License.
7+
*
8+
* This product includes a number of subcomponents with
9+
* separate copyright notices and license terms. Your use of these
10+
* subcomponents is subject to the terms and conditions of the
11+
* subcomponent's license, as noted in the LICENSE file.
12+
*/
13+
14+
package org.springframework.issues;
15+
16+
17+
/**
18+
* @author Dave Syer
19+
*
20+
*/
21+
public class DefaultFoo implements Foo {
22+
23+
private Bar bar;
24+
25+
public DefaultFoo(Bar bar) {
26+
this.bar = bar;
27+
}
28+
29+
public Bar getBar() {
30+
return bar;
31+
}
32+
33+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Cloud Foundry 2012.02.03 Beta
3+
* Copyright (c) [2009-2012] VMware, Inc. All Rights Reserved.
4+
*
5+
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
6+
* You may not use this product except in compliance with the License.
7+
*
8+
* This product includes a number of subcomponents with
9+
* separate copyright notices and license terms. Your use of these
10+
* subcomponents is subject to the terms and conditions of the
11+
* subcomponent's license, as noted in the LICENSE file.
12+
*/
13+
14+
package org.springframework.issues;
15+
16+
17+
/**
18+
* @author Dave Syer
19+
*
20+
*/
21+
public interface Foo {
22+
23+
Bar getBar();
24+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
3+
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
4+
5+
<!-- Appenders -->
6+
<appender name="console" class="org.apache.log4j.ConsoleAppender">
7+
<param name="Target" value="System.out" />
8+
<layout class="org.apache.log4j.PatternLayout">
9+
<param name="ConversionPattern" value="%-5p: %c - %m%n" />
10+
</layout>
11+
</appender>
12+
13+
<!-- Application Loggers -->
14+
<logger name="org.test.mvc">
15+
<level value="info" />
16+
</logger>
17+
18+
<!-- 3rdparty Loggers -->
19+
<logger name="org.springframework.core">
20+
<level value="info" />
21+
</logger>
22+
23+
<logger name="org.springframework.beans">
24+
<level value="info" />
25+
</logger>
26+
27+
<logger name="org.springframework.context">
28+
<level value="info" />
29+
</logger>
30+
31+
<logger name="org.springframework.web">
32+
<level value="info" />
33+
</logger>
34+
35+
<!-- Root Logger -->
36+
<root>
37+
<priority value="warn" />
38+
<appender-ref ref="console" />
39+
</root>
40+
41+
</log4j:configuration>

0 commit comments

Comments
 (0)