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

SPR-10125 #42

Merged
merged 1 commit into from
Jan 14, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions SPR-10125/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.issues</groupId>
<artifactId>SPR-10125</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.0.2.RELEASE</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<!--
<repository>
<id>s2-release</id>
<url>http://repo.springsource.org/release</url>
</repository>
<repository>
<id>s2-milestone</id>
<url>http://repo.springsource.org/milestone</url>
</repository>
<repository>
<id>s2-staging</id>
<url>http://repo.springsource.org/libs-staging-local</url>
</repository>
-->
<repository>
<id>s2-snapshot</id>
<url>http://repo.springsource.org/snapshot</url>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<properties>
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<includes>
<include>**/*Tests.java</include>
</includes>
<excludes>
<exclude>**/*Abstract*.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.springframework.issues;


public abstract class AbstractFoo implements FooId {

}
13 changes: 13 additions & 0 deletions SPR-10125/src/main/java/org/springframework/issues/Bar.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.springframework.issues;

public class Bar {

private String spel;

public String getSpel() {
return spel;
}
public void setSpel(String spel) {
this.spel = spel;
}
}
6 changes: 6 additions & 0 deletions SPR-10125/src/main/java/org/springframework/issues/Foo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.springframework.issues;


public class Foo extends AbstractFoo {

}
8 changes: 8 additions & 0 deletions SPR-10125/src/main/java/org/springframework/issues/FooId.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package org.springframework.issues;


public interface FooId {

static final String D_ID = "id";

}
6 changes: 6 additions & 0 deletions SPR-10125/src/main/java/org/springframework/issues/Goo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.springframework.issues;


public class Goo extends AbstractFoo implements FooId {

}
Empty file.
20 changes: 20 additions & 0 deletions SPR-10125/src/test/java/org/springframework/issues/ReproTests.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.springframework.issues;

import org.junit.Test;
import org.springframework.context.support.GenericXmlApplicationContext;

/**
* Unit test that reproduces an issue reported against SPR JIRA. @Test methods within
* need not pass with the green bar! Rather they should fail in such a way that
* demonstrates the reported issue.
*/
public class ReproTests {

@Test
public void repro() {
GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
ctx.load("classpath:org/springframework/issues/ReproTests-context.xml");
ctx.refresh();
}

}
7 changes: 7 additions & 0 deletions SPR-10125/src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
log4j.rootCategory=ERROR, stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n

log4j.category.org.springframework=WARN
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">


<bean id="bar" class="org.springframework.issues.Bar">
<property name="spel" value="#{T(org.springframework.issues.Goo).D_ID}"/>
</bean>

<bean id="bar2" class="org.springframework.issues.Bar">
<property name="spel" value="#{T(org.springframework.issues.Foo).D_ID}"/>
</bean>

</beans>