Juergen Hoeller
328ba7b6d4
Polishing
11 years ago
Juergen Hoeller
dfc79721cb
AnnotationAttributesReadingVisitor defensively handles meta-annotation retrieval failure
...
Issue: SPR-12493
(cherry picked from commit 5018889 )
11 years ago
Juergen Hoeller
50c578c5a0
Polishing
11 years ago
Juergen Hoeller
5ac868036f
Clarified getAllAnnotationAttributes behavior
...
Issue: SPR-12473
11 years ago
Juergen Hoeller
98569045cb
Tracking ASM 5.0.4 development: Fix for ASM issue 317545
...
Issue: SPR-12470
(cherry picked from commit ab5856b )
11 years ago
Juergen Hoeller
6d3a0d5735
Polishing
11 years ago
Juergen Hoeller
21b8ce5284
MethodParameter generally uses volatile variables where applicable now (as well as a local copy of the parameterNameDiscoverer field)
...
Issue: SPR-12453
(cherry picked from commit 7fcadaa )
11 years ago
Juergen Hoeller
2490d1b38d
MutablePropertySources uses an internal CopyOnWriteArrayList for defensiveness against concurrent modifications
...
Issue: SPR-12428
(cherry picked from commit 1ef06cc )
11 years ago
Juergen Hoeller
acefd8381d
Polishing
11 years ago
Juergen Hoeller
2d874d724b
SimpleMetadataReaderFactory is capable of resolving inner class names with dot syntax now (analogous to ClassUtils.forName)
...
Issue: SPR-12390
(cherry picked from commit 725ad0d )
11 years ago
Juergen Hoeller
91940f212e
Normalized AnnotationAttributesReadingVisitor class layout and improved diagnostics through delegating to AnnotationUtils
...
Issue: SPR-12387
(cherry picked from commit b70c5d1 )
11 years ago
Juergen Hoeller
16a4fe70f2
Polishing
...
(cherry picked from commit 2956049 )
11 years ago
Juergen Hoeller
15c8987cc4
Polishing
11 years ago
Juergen Hoeller
e16f21c281
AnnotationUtils consistently logs introspection failures via lazily initialized logger
...
Issue: SPR-12325
Issue: SPR-12329
11 years ago
Juergen Hoeller
c672678423
Provider declaration for @Value method argument works again
...
Issue: SPR-12297
(cherry picked from commit 70fec47 )
11 years ago
Stephane Nicoll
c7b6b72e73
Optimize ResolvableType cache
...
Prior to this commit, the ResolvableType static cache was holding a lot
of duplicates for simple types. We are using too much metadata to compute
the key when the class has no generic information. so setFoo(String foo)
and setBar(String bar) would result in two entries in the cache because
the TypeProvider is different. On a very simple application 65% of the
entries in the cache were duplicate.
When the type is a Class with no generic information, the ResolvableType
instance is a simple wrapper around it so we might just as well not cache
it at all as the cost of finding it back from the cache is higher than
creating that simple wrapper.
This commit adds an explicit check; if the type is a simple Class we just
return a "resolved" ResolvableType instance for it. On a few test cases,
this reduces the size of the cache by 85%
Issue: SPR-12275
(cherry picked from commit 6f1acdd )
11 years ago
Juergen Hoeller
251970a2f9
Tracking ASM 5.0.4 development: Fix for ASM issue 317539
...
Issue: SPR-12255
(cherry picked from commit e8486e2 )
11 years ago
Juergen Hoeller
50e50d0c18
Polishing
...
(cherry picked from commit 16325c2 )
11 years ago
Juergen Hoeller
f8b729aa5f
Polishing
11 years ago
Sam Brannen
bea9f3ff76
Make SocketUtils a concrete class
...
Per the Javadoc for the SocketUtils() constructor, SocketUtils can be
instantiated as a Spring Bean in XML configuration files; however,
SocketUtils is currently abstract which prevents such usage.
This commit removes the 'abstract' declaration thereby allowing
SocketUtils to be instantiated as a Spring bean.
Issue: SPR-12169
(cherry picked from commit 559e81b )
11 years ago
Juergen Hoeller
d765698ac3
Polishing
11 years ago
Juergen Hoeller
97bd0ccfec
Polishing
11 years ago
Sebastien Deleuze
b7726ff48c
Improve ResolvableType.hashCode() for better performance
...
Prior to this commit, when there was a lot of entries in the
ResolvableType.cache HashMap, getting a simple value could
take a lot of time due to a lot of calls to ResolvableType.equals().
ResolvableType.equals() used this.type, getSource(),
this.variableResolver.getSource() and this.componentType, but
ResolvableType.hashCode() used only this.type.
With this commit, ResolvableType.hashCode() now uses the same
fields than ResolvableType.equals().
Performance on the spring-resolvabletype-benchmark project:
- 8000 us before this commit
- 120 us with this commit
Issue: SPR-12122
(cherry picked from commit 7ea69fb )
11 years ago
Juergen Hoeller
e324c2ab4a
Polishing
11 years ago
Juergen Hoeller
39a23660fa
PropertySource implementations perform conversion to String arrays via StringUtils (getting rid of EMPTY_NAMES_ARRAY)
...
(cherry picked from commit b73c531 )
11 years ago
Juergen Hoeller
a31ebb6c1e
Polishing
12 years ago
Juergen Hoeller
a7492fa55b
Polishing
12 years ago
Juergen Hoeller
d61353db51
AnnotatedElementUtils adapts post-processed values to AnnotationAttributes as well
...
Issue: SPR-12065
(cherry picked from commit ef51d4d )
12 years ago
Juergen Hoeller
f2eea9d911
Polishing
...
(cherry picked from commit 8f484d3 )
12 years ago
Juergen Hoeller
9ad6618207
Polishing
12 years ago
Juergen Hoeller
84a4433898
AbstractTypeHierarchyTraversingFilter leniently ignores non-loadable super classes and interfaces
...
Issue: SPR-12042
(cherry picked from commit a3163ce )
12 years ago
Juergen Hoeller
6e95b2613e
Polishing
12 years ago
Arjen Poutsma
fca72f6b65
StaxStreamXMLReader ignores significant whitespace
...
The StaxStreamXMLReader no longer handles all whitespace as ignorable
whitespace.
Issue: SPR-12000
(cherry picked from commit d6950d8 )
12 years ago
Juergen Hoeller
d45f743248
TypeDescriptor's getResolvableType() and getSource() are @since 4.0
...
(cherry picked from commit 0ce90f1 )
12 years ago
Juergen Hoeller
940ae0c528
ClassUtils.isCacheSafe defensively catches SecurityException (for Google App Engine compatibility)
...
Issue: SPR-12002
(cherry picked from commit 48fea0b )
12 years ago
Juergen Hoeller
0ef17a2f2c
NestedIOException can use IOException constructor with cause argument on JDK 6+
...
(cherry picked from commit c18b6bf )
12 years ago
Juergen Hoeller
845528a6cb
Polishing
12 years ago
Juergen Hoeller
10a039000b
Test ASM5's bytecode parsing of INVOKESPECIAL/STATIC on interfaces
...
Issue: SPR-11979
(cherry picked from commit 29f6f3d )
12 years ago
Juergen Hoeller
48f753f368
Polishing (backported from master)
12 years ago
Juergen Hoeller
c16032b98a
Consistent declaration of private static final logger variables
...
Issue: SPR-11905
(cherry picked from commit 18131bf )
12 years ago
Juergen Hoeller
5f695a47db
Cache Class.getDeclaredMethods() results and avoid pattern matching in isCglibRenamedMethod as far as possible
...
Issue: SPR-11882
Issue: SPR-11894
12 years ago
Juergen Hoeller
74c878ee0e
AnnotationUtils defensively catches and logs unexpected exceptions from retrieval attempts (proceeding like the annotation wasn't there)
...
Issue: SPR-11874
(cherry picked from commit 2c0c081 )
12 years ago
Juergen Hoeller
6403479902
TypeDescriptor's nested type traversal leniently returns null in case of unresolvable nested type
...
Issue: SPR-11898
(cherry picked from commit d663580 )
12 years ago
Juergen Hoeller
8ddbbc2e67
PathMatchingResourcePatternResolver's findPathMatchingResources needs to check for VFS before checking isJarResource
...
ResourceUtils isFileURL also detects "vfsfile" as a file system protocol (again).
Issue: SPR-11887
12 years ago
Juergen Hoeller
ccebbf74ec
Latest patches from ASM trunk
...
(cherry picked from commit cfc720d )
12 years ago
Juergen Hoeller
c350080f99
StringUtils.parseLocaleString parses variant correctly when variant contains country code
...
This commit also includes a JUnit 4 style revision of StringUtilsTests and ObjectUtilsTests.
Issue: SPR-11806
(cherry picked from commit 295a6ae )
12 years ago
Rossen Stoyanchev
748167bfa3
Improve StringUtils.cleanPath
...
Issue: SPR-11793
12 years ago
Juergen Hoeller
7bc38acbf6
Polishing
12 years ago
Juergen Hoeller
297e4eec36
Keep unused MemorySafeUndeclaredThrowableStrategy around in deprecated form for the 4.0.x line
...
Issue: SPR-11782
12 years ago
Juergen Hoeller
1e7fade89e
JasperReports-related polishing
...
(cherry picked from commit 782d10c )
12 years ago