Commit Graph

174 Commits

Author SHA1 Message Date
Keith Donald 9bc48d08a1 el-based message resolution; expected failure right now
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1376 50f2f4bb-b051-0410-bef5-90022cba6387
2009-06-13 17:18:12 +00:00
Andy Clement 8bd39785e9 change from SpelMessages to SpelMessage. Changed exception getter to getMessageCode() from getMessageUnformatted
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1355 50f2f4bb-b051-0410-bef5-90022cba6387
2009-06-11 16:17:44 +00:00
Andy Clement 1e2cecfd76 new feature for binder - automatically create lists and entries in lists upon referencing nulls
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1300 50f2f4bb-b051-0410-bef5-90022cba6387
2009-06-02 16:42:43 +00:00
Andy Clement dd30ab4237 updates for Binding code - able to retrieve the type descriptor for a property and ask detailed questions (eg getAnnotations())
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1296 50f2f4bb-b051-0410-bef5-90022cba6387
2009-06-02 00:25:59 +00:00
Andy Clement 3d35a43433 test coverage. now > 95%
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1271 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-27 19:59:32 +00:00
Andy Clement bdb2b0bbb1 test coverage
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1270 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-27 19:37:17 +00:00
Andy Clement 3c402eb54c findbugs issue addressed
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1269 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-27 19:22:53 +00:00
Andy Clement d359b1e98b fix for ternary or elvis using a full expression for their result components. parser polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1268 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-27 19:16:45 +00:00
Andy Clement 533fc879ff remove antlr dependency
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1263 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-27 04:38:36 +00:00
Andy Clement 42155480b0 Hand written SpEL parser. Removed antlr dependency. tests upgraded to JUnit4 - 93% coverage.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1260 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-27 04:20:18 +00:00
Keith Donald fc41ed0073 renamed back to TypeDescriptor after ConversionContext proved not good enough name for any change
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1240 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-23 21:23:10 +00:00
Keith Donald 05ae07ed98 costin code review comments
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1210 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-18 13:13:34 +00:00
Keith Donald e8dc69f11c fixed autoboxing bug
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1205 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-17 02:22:02 +00:00
Keith Donald 2d8cc2df46 commented out failing el test for now - todo
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1194 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-15 21:34:11 +00:00
Keith Donald c9c26c6c6c BindingPoint to ConversionPoint, javadoc
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1192 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-15 20:32:23 +00:00
Keith Donald a2f085d87c renamed TypeDescriptor to BindingPoint
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1190 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-15 17:30:03 +00:00
Juergen Hoeller 612ae0653d quick attempt to fix core.convert breakage
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1181 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-15 11:35:41 +00:00
Juergen Hoeller 11450f1fdb updated all Spring Framework OSGI manifests to list unversioned imports explicitly; relaxed several OSGi bundle dependencies to optional and extended version ranges
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1159 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-12 16:43:15 +00:00
Keith Donald 62f87abbba added two way converter
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1148 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-11 21:40:55 +00:00
Keith Donald 81b3f77455 renamed executeConversion to simply convert for readibility
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1147 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-11 21:25:33 +00:00
Keith Donald 453bed1e9b made ConversionExecutor internal; removed other unused operations from public SPI
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1145 50f2f4bb-b051-0410-bef5-90022cba6387
2009-05-11 21:23:18 +00:00
Andy Clement 95ea243026 SPR-5663: test and fix: inconsistency between canRead() and read() on ReflectivePropertyResolver
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1052 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-22 17:57:24 +00:00
Andy Clement 2bc6cb756c SPR-5673: fix for problems with expressions that use the same symbols as are used in the template prefix/suffix
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1045 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-22 00:10:47 +00:00
Andy Clement 93ded6edf7 minor fix
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1014 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-17 05:02:05 +00:00
Andy Clement 511c082cb6 removed unnecessary class. improvements to map projection/selection
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1013 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-16 19:21:50 +00:00
Andy Clement fd8220dea0 changed to [] from {} for projection and selection (including first and last selection). addresses the problem of clashes with template prefix/suffix
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1007 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-15 23:54:52 +00:00
Thomas Risberg 8fe2a89d43 switched to use XInclude
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1001 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-14 21:37:40 +00:00
Andy Clement 3e60a76e6b SPR-5673: more intelligence in TemplateAwareExpressionParser. Supports prefix/suffix escaping and nesting of prefixes/suffixes
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1000 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-14 21:26:56 +00:00
Andy Clement dce025e40f more tests - about 82% coverage now. focused on testing reflection helper since it is rather complex. some asserts also added.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@989 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-13 20:51:52 +00:00
Andy Clement 8a980b8364 More tests. First pass on messages review.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@979 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-12 16:45:00 +00:00
Keith Donald 64de1981a3 made conversion service pluggable
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@975 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 20:52:16 +00:00
Keith Donald 8df73198f6 activated DefaultConversionService in EL, linking convert and EL
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@974 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 20:47:04 +00:00
Andy Clement 073b1556ce Fixed StandardTypeLocator to only know about java.lang.* out of the box. Doc fixes related to that.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@967 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 03:20:09 +00:00
Andy Clement b46afe7e39 finally some comparator logic that makes sense :)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@966 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 02:21:25 +00:00
Andy Clement 75d26cdb9d More tests, corrections in standard comparator, more helper methods in StandardEvaluationContext.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@965 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 00:03:53 +00:00
Andy Clement 9f5676a4b1 more tests, minor fixes. some findbugs issues addressed.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@963 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 22:03:38 +00:00
Andy Clement f899a72e1c Changed signature of convertValue() to keep the Sun compiler happy
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@960 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 16:00:53 +00:00
Mark Pollack 5f3ac321cb Change version from 3.0.0.M3 to 3.0.0.BUILD-SNAPSHOT (again)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@959 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 14:38:35 +00:00
Andy Clement cfa9cdf035 More tests and some fixes. Also created tests based on the documentation examples.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@952 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 01:43:07 +00:00
Andy Clement 29d27f3687 Removed unnecessary code. Increased test coverage from 70>75% - still some way to go
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@946 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-08 04:50:43 +00:00
Andy Clement a6fa167d5e Corrected exception message inserts
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@945 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-08 04:49:47 +00:00
Andy Clement 0374aacec1 Improving test coverage, more language consistency
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@931 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-06 19:04:04 +00:00
Andy Clement 7cc791ae9e More test coverage for the expression AST
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@927 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-04 01:04:31 +00:00
Andy Clement 5eb884a7db objects flowing around in expression evaluation are now TypedValue's - these carry generics info, used for conversions.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@925 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-03 23:39:14 +00:00
Mark Pollack 9feacc0375 Change version from 3.0.0.M3 to 3.0.0.BUILD-SNAPSHOT
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@919 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-03 14:03:48 +00:00
Andy Clement 2fb46e48c0 design change - no longer surfacing typeDescriptor through property accessor. conversion done internally in property write() code
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@914 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-01 23:27:49 +00:00
Andy Clement 877603f49c new packages added
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@912 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-01 21:47:35 +00:00
Andy Clement c289840f9a initial typeDescriptor awareness in the EL. some basic testing of using GenericConversionService
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@911 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-01 21:38:51 +00:00
Andy Clement 78c1d085d5 Indexed objects (arrays/maps/lists) now settable
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@879 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-30 19:40:20 +00:00
Andy Clement ec411f271b Indexed objects (arrays/maps/lists) now settable
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@878 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-30 19:40:09 +00:00