|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2015 the original author or authors. |
| 2 | + * Copyright 2002-2016 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -1763,6 +1763,14 @@ public void cornerSpr10115() {
|
1763 | 1763 | assertEquals("val1", Spr10115Bean.prop1);
|
1764 | 1764 | }
|
1765 | 1765 |
|
| 1766 | + @Test |
| 1767 | + public void cornerSpr13837() { |
| 1768 | + Spr13837Bean target = new Spr13837Bean(); |
| 1769 | + AbstractPropertyAccessor accessor = createAccessor(target); |
| 1770 | + accessor.setPropertyValue("something", 42); |
| 1771 | + assertEquals(Integer.valueOf(42), target.something); |
| 1772 | + } |
| 1773 | + |
1766 | 1774 |
|
1767 | 1775 | private Person createPerson(String name, String city, String country) {
|
1768 | 1776 | return new Person(name, new Address(city, country));
|
@@ -2201,6 +2209,20 @@ public static void setProp1(String prop1) {
|
2201 | 2209 | }
|
2202 | 2210 | }
|
2203 | 2211 |
|
| 2212 | + static class Spr13837Bean { |
| 2213 | + |
| 2214 | + protected Integer something; |
| 2215 | + |
| 2216 | + public Spr13837Bean setSomething(final Integer something) { |
| 2217 | + this.something = something; |
| 2218 | + return this; |
| 2219 | + } |
| 2220 | + |
| 2221 | + public Integer getSomething() { |
| 2222 | + return this.something; |
| 2223 | + } |
| 2224 | + } |
| 2225 | + |
2204 | 2226 | @SuppressWarnings("serial")
|
2205 | 2227 | public static class ReadOnlyMap<K, V> extends HashMap<K, V> {
|
2206 | 2228 |
|
|
0 commit comments