Juergen Hoeller
e8bef9d800
added testStringArrayToResourceArray
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3591 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
2c62aedd12
refined exception messages; added unit tests for custom array types
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3577 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
1ba330c276
GenericTypeResolver works for nested parameterized types and for generic superclasses as well (SPR-7389)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3499 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
568f84f25e
fixed test failures with respect to null handling and PropertyTypeDescriptor usage for collection elements
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3448 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
7fb245167e
ConversionService is able to deal with empty collections and nested collections (fixed regression; SPR-7289, SPR-7293); ConversionService properly handles nested Resource arrays in Map values (fixed regression; SPR-7295); ConversionService does not accidentally use copy constructor for same type (SPR-7304)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3447 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Oliver Gierke
cbfb11fffb
Rollback accidental commit :/.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3424 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Oliver Gierke
d3de491ea1
Added missing imports.
...
Added additional annotation to test interface to make sure no ClassCastException appears.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3423 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Oliver Gierke
ccc01a9583
Added helper methods to access method parameter annotations.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3422 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
689191548f
properly support void.class in TypeDescriptor and GenericConversionService (SPR-7281)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3416 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
a7e259435e
ConversionService is able to apply Converters to interface-based array elements (SPR-7150); a context ConversionService is able to override an ApplicationContext's resource editors (SPR-7079)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3369 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
f8089ea9b8
ClassUtils recognizes "void" as primitive type name as well (SPR-7212)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3347 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
546d9968d9
property placeholders can deal with nested expressions which happen to use the same suffix (SPR-7098)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3282 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
1d581a876c
polish
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3272 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
e921c1d447
checking in performance tests
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3271 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
28a652ea77
caching optmizations and performance tests
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3268 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
ca29f3be5e
converter caching
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3265 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
53398416ec
promoted char sequence first
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3261 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
90fb3dcfe3
fixed failing test
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3258 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
21a9cb510f
fixed failing test
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3257 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
eca3e5d0b8
improved conversion system logging, collection converter simplification/polish, several optimizations, annotation-driven formatting caching
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3255 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Ramnivas Laddad
c340cf02e0
Improved fix for SPR-6850 by dealing with bounds separately from normal types
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3220 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
673373b448
corrected TypeUtils.isAssignable() failure to return true in certain valid wildcard bounding scenarios (SPR-6850)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3171 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Chris Beams
fe84bf9b92
SPR-6888: ClassPathResource.getDescription() now fully qualifies resource path regardless of constructor used.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3133 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Costin Leau
b58491749d
+ fixed internal caching for LocalVariableTableParameterNameDiscoverer
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2952 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Costin Leau
c4b67ba0e5
+ improved LocalVariableTableParameterNameDiscoverer discovery and memory usage
...
+ added extra tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2950 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Costin Leau
988d6e7f8a
SPR-6775
...
+ remove class definitions for sticking around (by forcing eager metadata initialization)
+ improve cache size by eliminating the numbers of method metadata objects created
+ improve lookup access on method metadata
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2874 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Costin Leau
898a30ae3f
SPR-6775
...
+ replace the vanilla hashmap with a quick-and-dirty, JDK based, fixed LRU cache
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2872 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Arjen Poutsma
7cee45d74d
Test for SPR-6690
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2815 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
fd915f1d92
unresolvable placeholders will be ignored by default for Resource array properties as well (SPR-6654)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2807 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
4b46db27a9
fixed type assignability check for wildcarded Map (SPR-6676)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2806 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
55557b778f
use TypeDescriptor.forObject instead of constructor; enforce use of TypeDescriptor.valueOf through making the constructor private
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2683 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
b34a2ab777
TypeDescriptor.valueOf usage in favor of constants; TypedValue usage simplification
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2681 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
25b0839597
object to String not supported test case
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2676 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
f983f6c4d5
ObjectToObject converter now only matches public methods/constructors; private class method invocations also supported now through a makeAccessible call
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2675 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
6478829a47
general polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2674 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
246bb34e08
introspect element type in case of incoming Collection/Map in order to not accidentally say canConvert=true (SPR-6564)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2671 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
18336e3732
introduced TypeDescriptor.OBJECT and TypeDescriptor.STRING
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2668 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
18ec90aff9
revised default converters; renamed ConverterRegistry's addGenericConverter to addConverter
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2658 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
46cb691cf8
SPR-6537 initial commit; more extensive testing to follow
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2619 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Juergen Hoeller
ed5de705ac
GenericConversionService prefers matches against inherited interfaces over superclasses (SPR-6297)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2610 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Arjen Poutsma
b96070163e
SPR-6482 - @RequestMapping handled incorrectly when value contains "." (dot) character
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2589 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Arjen Poutsma
c2b7b406c4
SPR-6280 - PathVariable resolution does not work properly
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2499 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
c52f5a696a
removed entity to string id conversion routine as it is not required
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2495 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
5bbb38479d
Added entity conveter null checking; updated from string converters to simply test str.length() as pre-processing check
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2494 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
f4a9460bc6
moved test case where it belongs
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2493 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
101a0667f3
polish
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2492 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
9d1daf3232
found hotspot; added ConverisonServiceFactoryBean
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2473 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
David Syer
5ad4d199cc
Add some tests (and comment out the one that is breaking the build)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2470 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
e1463010f4
doc updates
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2467 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago
Keith Donald
f6ee598cd3
default conversion service instance caching and tests
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2452 50f2f4bb-b051-0410-bef5-90022cba6387
16 years ago