Type |
Changes |
By |
|
Add plugable property name expression
Resolver
. Fixes
BEANUTILS-259. |
niallp
|
|
General Converter implementation improvements:
- New
AbstractConverterwhich provides a basic structure for Converter implementations:
- Provides structure for converting to and from a String for the type the converter handles.
- Provides a mechanism for default values.
- Handles missing and invalid values in a uniform way.
- New
NumberConverterimplementation:
- Converts both to and from
String for numbers.
- Can be configured to convert using the default format for either the default Locale or a specified Locale.
- Can be configured to convert using a specified
DecimalFormat pattern, either for the default Locale or a specified Locale.
- Provides the basis for all the number converters in BeanUtils.
Fixes
BEANUTILS-258. |
niallp
|
|
Add new generic
ArrayConverterimplementation. Fixes
BEANUTILS-242. |
niallp
|
|
Add new generic
DateTimeConverterimplementation.
- Converts both to and from
String for dates.
- Can be configured to convert using the default format for either the default Locale or a specified Locale.
- Can be configured to convert using a set of
DateFormat patterns.
- Provides the basis for all the date converters in BeanUtils.
- Handles conversion for (and between)
java.util.Date ,
java.util.Calendar ,
java.sql.Date ,
java.sql.Time and
java.sql.Timestamp
Fixes
BEANUTILS-255. |
niallp
|
|
Better implementation of SqlDateConverter. Modified SqlDateConverter, SqlTimeConverter and SqlTimestampConverter to accept java.util.Date and Calendar object instances. Added tests. Fixes
BEANUTILS-239. Thanks to Rafael Afonso . |
vgritsenko
|
|
New Facade converter implementation - hide non-Converter public APIs. Fixes
BEANUTILS-286. |
niallp
|
|
Add "t/f" to BooleanConverter. Fixes
BEANUTILS-229. |
skitching
|
|
Support Mapped property inside a mapped property. Fixes
BEANUTILS-43. Thanks to Firepica and Thomas Jacob . |
niallp
|
|
Support Indexed property inside a mapped property. Fixes
BEANUTILS-113. Thanks to Firepica and Ludwig Wensauer . |
niallp
|
|
Support Arrays with multiple dimension. Fixes
BEANUTILS-247. Thanks to Christian Poitras, Thomas Jacob and scott sadlo . |
niallp
|
|
Include bean class in the message of PropertyUtilsBean exceptions. Fixes
BEANUTILS-207. Thanks to Erik Meade . |
bayard
|
|
Provide better error message for "argument type mismatch". Fixes
BEANUTILS-224. Thanks to Ralf Hauser . |
bayard
|
|
Improved messages for unknown properties. Fixes
BEANUTILS-30. Thanks to Barry Kaplan . |
bayard
|
|
MethodUtils.invoke for static methods. Fixes
BEANUTILS-193. Thanks to Nestor Boscan . |
bayard
|
|
Log or throw exception in PropertyUtilsBean. Added mechanism to initialize the "cause" on an Exception using reflection fo r JDK 1.4+ (copied from Commons HttpClient). Fixes
BEANUTILS-266. Thanks to Brian Ewins and Commons HttpClient . |
niallp
|
|
Add lazyDynaList. Thanks to Vic Cekvenich . |
niallp
|
|
Provide a Map decorator for a DynaBean (enables DynaBean to be used with other teechnologies such as JSTL). Fixes
BEANUTILS-185. Thanks to Gabriel Belingueres . |
niallp
|
|
Implement equals() and hashCode() methods for DynaProperty. Fixes
BEANUTILS-233. Thanks to Russell . |
niallp
|
|
BeanUtils's tests fail to compile under JDK 1.6 Fixes
BEANUTILS-243. Thanks to Henri Yandell . |
niallp
|
|
Lock in BeanUtilsBean.getInstance( Fixes
BEANUTILS-49. Thanks to Jesper Richter-Reichhelm . |
niallp
|
|
Beanutils's describe() method cannot determine reader methods for anonymous class. Fixes
BEANUTILS-157. Thanks to Thorbjorn Ravn Andersen . |
niallp
|
|
Added warning about describe behaviour to the javadocs. Fixes
BEANUTILS-158. |
rdonkin
|
|
BeanUtilsBean's setProperty() does not convert objects using custom converters properly. Fixes
BEANUTILS-249. Thanks to Brad . |
niallp
|
|
Fix javadoc - IllegalArgumentException in BeanUtils.copyProperties when property types don't match.
Fixes
BEANUTILS-17. |
niallp
|
|
Writing to a mapped property requires a setter for a map, but never uses it. Fixes
BEANUTILS-68. Thanks to Dmitry Platonoff . |
niallp
|
|
BeanUtilsBean.getArrayProperty() does not u se ConvertUtils. Fixes
BEANUTILS-110. Thanks to Etienne Bernard . |
niallp
|
|
MappedPropertyDescriptor - replace copied code. Fixes
BEANUTILS-6. Thanks to Sam Ruby . |
niallp
|
|
MappedPropertyDescriptor: Add comments re: * use of static variable safe in shared classloader * memory leak possible on webapp undeploy. |
skitching
|
|
MappedPropertyDescriptor doesn't recognize boolean property accessor. Fixes
BEANUTILS-69. Thanks to Chris Audley . |
niallp
|
|
Add test for MappedPropertyDescriptor with different types on get/set methods. Fixes
BEANUTILS-163. |
niallp
|
|
LocaleBeanUtils setProperty does not work on nested property. Fixes
BEANUTILS-140. Thanks to Marco La Porta . |
niallp
|
|
Package scope implementation of a public interface for mapped property fails (fixed by changes to MappedPropertyDescriptor associated with BEANUTILS-6) Fixes
BEANUTILS-87. Thanks to YOKOTA Takehiko . |
niallp
|
|
PropertyUtils incosistency - can't use "dot" in mapped properties for setProperty or getPropertyDescriptor (fixed by the changes for BEANUTILS-259 Plugable Property Name Expression Resolver). Fixes
BEANUTILS-33. Thanks to Eoin Curran . |
niallp
|
|
Public methods overriden in anonymous or private subclasses are not recognized by PropertyUtils. Fixes
BEANUTILS-273. Thanks to Marcelo Liberato . |
niallp
|
|
PropertyUtilsBean's isReadable() / isWriteable() always return false for mapped properties. Fixes
BEANUTILS-88. Thanks to Chuck Daniels . |
niallp
|
|
PropertyUtilsBean isReadable() and isWriteable() methods do not work correctly for WrapDynaBean. Fixes
BEANUTILS-61. Thanks to Brian Ewins . |
niallp
|
|
PropertyUtils.isReadable() and PropertyUtils.getProperty() not consistent. Fixes
BEANUTILS-18. Thanks to Maarten Coene . |
niallp
|
|
PropertyUtilsBean.copyProperties does not catch NoSuchMethodException Fixes
BEANUTILS-92. Thanks to Will Pugh . |
bayard
|
|
PropertyUtilsBean.getIndexedProperty()'s javadoc should indicate IndexOutOufBoundsException can be thrown rather than just ArrayIndexOutOufBoundsException. Fixes
BEANUTILS-256. Thanks to Torsten Feig . |
niallp
|
|
Create new methods getPropertyOfMapBean and setPropertyOfMapBean that the existing setNestedProperty and getNestedProperty methods now call when they discover the bean they are accessing implements Map. This makes it much easier for users to subclass and customise this behaviour of PropertyUtilsBean, eg in order to restore pre-1.5 behaviour. This patch also causes an exception to be thrown when the propertyName passed to getPropertyOfMapBean or setPropertyOfMapBean has MAPPED_DELIM or INDEXED_DELIM chars in it. This never worked as expected before (the whole string was treated literally as the propertyName), so throwing an exception here should not break any existing code. It should be of help to future developers who make this mistake though... Fixes
BEANUTILS-162. |
skitching
|
|
Ignore simple properties on
java.util.Map objects -
Map methods are always used on a Map object. Reverts
BEANUTILS-144. See
BEANUTILS-162f or discussion. |
skitching
|
|
Correct getPropertyDescriptor() and setNestedProperty() methods to throw a NestedNullException rather than just IllegalArgumentException (consistent with the getNestedProperty() method). Fixes
BEANUTILS-262. |
niallp
|
|
Problems on indexed property with JDK 1.4. Fixes
BEANUTILS-97. |
niallp
|
|
BooleanArrayConverter:
- Use new AbstractArrayConverter constructors
- Convert strings to booleans by invoking a BooleanConverter rather than hard-wiring the conversion.
|
skitching
|
|
BooleanConverter:
- Add facility for user to override the default set of true and false string definitions
- provide ability to pass special NO_DEFAULT object as the "defaultValue" constructor parameter.
Thanks to Eric Rizzo . |
skitching
|
|
AbstractArrayConverter: provide ability to pass special NO_DEFAULT object as the "defaultValue" constructor parameter. |
skitching
|
|
DecimalLocaleConverter and subClasses never throw a ConversionException. Fixes
BEANUTILS-78. Thanks to Stefan Lotscher . |
niallp
|
|
FloatLocaleConverter cannot parse negative values. Fixes
BEANUTILS-44. Thanks to Paul Jenkins . |
niallp
|
|
Improve ClassConverter robustness. Fixes
BEANUTILS-263. Thanks to Alex Albu . |
niallp
|
|
DateLocaleConverter does not always throw an Exception for invalid dates. Fixes
BEANUTILS-271. Thanks to Nico Hoogervorst . |
niallp
|
|
Don't try parsing values that are already Dates/Numbers in Date/Number locale Converters. Fixes
BEANUTILS-288. |
niallp
|
|
WrapDynaClass: Added comment re potential memory leak, and safety when using shared classloader |
skitching
|
|
Make WrapDynaBean Serializable. |
niallp
|
|
WrapDynaBeanTestCase failing with jikes/kaffe because of static List in TestBean. Fixes
BEANUTILS-36. Thanks to Jack . |
niallp
|
|
Misleading error message in ConvertingWrapDynaBean. Fixes
BEANUTILS-23. Thanks to Aslak Hellesoy . |
niallp
|
|
LazyDynaBean: don't try and instantiate properties of type Object.class. Fixes
BEANUTILS-24. Thanks to Roi Ares . |
niallp
|
|
LazyDynabean JavaDoc corrections. Fixes
BEANUTILS-133. Thanks to Masoud Omidvar . |
niallp
|
|
LazyDynaClass can create a DynaProperty with a "null" type. Fixes
BEANUTILS-250. |
niallp
|
|
JDBCDynaClass "lowerCase" option causes problems in RowSetDynaClass and ResultSetIterator. Fixes
BEANUTILS-289. |
niallp
|
|
RowSetDynaClass fails to copy ResultSet to DynaBean with Oracle 10g JDBC driver. Fixes
BEANUTILS-142. Thanks to Li Zhang . |
niallp
|
|
Fix BeanComparator throws wrong exception and hides cause. Fixes
BEANUTILS-241. Thanks to Chris Hyzer . |
bayard
|
|
Deprecate the public static defaultTransformers HashMap and make it unmodifiable. Fixes
BEANUTILS-112. Thanks to Simon Kitching . |
niallp
|
|
Merge Bean-Collections back into core BeanUtils and remove Bean-Collections sub-project. Fixes
BEANUTILS-290. |
niallp
|
|
Fixi the build to include all the tests and change the build.properties.sample so it's easier to use for the default maven user (ie: it looks by default in the .maven repository) Fixes
BEANUTILS-287. |
bayard
|
|
Improvements to maven build. Fixes
BEANUTILS-217. Thanks to Carlos Sanchez . |
niallp
|
|
Add Implementation-Vendor-Id entry to jar's manifest. Fixes
BEANUTILS-54. Thanks to Pascal Grange . |
niallp
|
|
Resolve compiler warnings: Unused imports, un-read local variables, field hiding, empty block, improperly used statics, uncessary semi colons, unnecessary casts. Fixes
BEANUTILS-121. Thanks to Chris Tilden . |
bayard
|
|
Replace use of static Log objects with instance or local variables. It isn't safe to use static Log objects in code that might be deployed via a shared classloader as they will bind to the Log object from the context classloader in use when the first use happens. |
skitching
|
|
BeanMap: Fix internal variable to not include non-existant write methods. - ported from Commons Collections. Fixes
COLLECTIONS-22. Thanks to Dimiter Dimitrov . |
scolebourne
|
|
Change MethodUtils to make getMatchingAccessibleMethod() method selection more rational. Thanks to Steve Cohen . |
rdonkin
|