Commit Graph

315 Commits

Author SHA1 Message Date
Juergen Hoeller cc0bd730eb polishing 2009-11-27 01:34:56 +00:00
Keith Donald 692b1ef636 found hotspot; added ConverisonServiceFactoryBean 2009-11-20 14:43:12 +00:00
Keith Donald 7b561c76fe default conversion service instance caching and tests 2009-11-19 15:22:44 +00:00
Keith Donald d85dc01e28 moved generic converter to spi; added entity converter; removed various service impls in favor of service factory 2009-11-19 09:10:51 +00:00
Keith Donald 3361de3875 SPR-6278 2009-11-12 21:18:17 +00:00
Andy Clement 61a8fa0ebd change PlaceOfBirth toString() so round tripping from String > new PlaceOfBirth(String) > String works ok 2009-11-12 20:56:21 +00:00
Keith Donald 70fe75384d fixed failing tests due to generic object to object converter fallback being over eager 2009-11-12 06:57:51 +00:00
Keith Donald 791832789d polish 2009-11-04 17:38:17 +00:00
Mark Fisher 53eb612a68 SPR-6059 Avoiding NPE for OR operator. If the value is null instead of a valid boolean or Boolean, it will now trigger an EvaluationException. 2009-10-28 23:14:29 +00:00
Mark Fisher f4460dcbf7 SPR-6059 Avoiding NPE for unary-not and ternary operators. If the value is null instead of a valid boolean or Boolean, it will now trigger an EvaluationException. 2009-10-28 21:57:09 +00:00
Mark Fisher 3346752cfd INT-6051 SpEL selection and projection may now be applied to arrays. 2009-10-28 03:42:36 +00:00
Mark Fisher 776edbcae3 SPR-6051 avoiding NPE in TypedValue.toString() 2009-10-27 23:59:46 +00:00
Juergen Hoeller a7f0d50643 fixed ParseException constructor calls (SPR-6239) 2009-10-19 12:59:17 +00:00
Andy Clement c9057fd1da SPR-6230: SpEL improvements 2009-10-13 18:11:34 +00:00
Keith Donald e7c8f1ef8b SPR-6179, additional mapper test cases 2009-10-04 04:13:27 +00:00
Sam Brannen 06872dd465 Fixed minor typo. 2009-10-03 22:18:50 +00:00
Mark Pollack c6cd1a528e SPR-6119 - Add slf4j dependency back to orm's pom.xml but in test scope as it is needed to run tests that use Hibernate
SPR-5956 - Remove commons-logging dependency definitions in pom.xml for all but spring-core so as to make exclusion rule easier for user who use slf4j
2009-09-25 05:16:55 +00:00
Mark Pollack 4f94f45ec4 pom maintenance 2009-09-21 07:37:30 +00:00
Keith Donald fe525f5100 polish 2009-09-21 05:51:10 +00:00
Keith Donald d3b43ebccb refined generic converter concept 2009-09-18 19:57:59 +00:00
Juergen Hoeller 7123e4f81e expression parser uses context's ConversionService by default 2009-09-07 18:37:59 +00:00
Andy Clement 855eac549e SpelExpressionParser made threadsafe 2009-09-03 20:09:11 +00:00
Juergen Hoeller 8754f0bc85 updated dependencies 2009-08-31 11:25:54 +00:00
Juergen Hoeller 2d7c2d6fff revised wrapper type handling 2009-08-09 06:36:16 +00:00
Juergen Hoeller dd67900109 revised core conversion package for BeanWrapper/BeanFactory integration 2009-08-09 00:52:41 +00:00
Mark Pollack 97e3b5ca8c SPR-5976 - Upgrade POMS to JUnit 4.6 2009-08-05 17:48:53 +00:00
Arjen Poutsma 3d29023ef3 Updating POMs to contain Junit & EasyMock version numbers. Apparently, the maven ant tasks cannot resolve our parent pom. 2009-08-03 09:21:44 +00:00
Andy Clement 7c6ea9b80d per Ramnivas' suggestion, removing this bit to try and fix snapshot builds 2009-07-28 22:03:09 +00:00
Chris Beams 9163d8043b updated .jms dependency on junit 4.6.0 from test->runtime to test->compile. touched all org.eclipse.jdt.core.prefs (during the process of importing the projects). only the date comments within each have changed. 2009-07-15 07:26:31 +00:00
Keith Donald 6206e5f11f ignore failing test for now 2009-07-12 18:32:26 +00:00
Andy Clement 84bdd1ab8e better method name 2009-07-10 19:44:40 +00:00
Andy Clement 3788a84b8e for Keith and his binder: fault in support for maps (if attempt made to reference into null map) and for general objects, e.g. foo.bar if foo was null, attempt to dynamically build foo. 2009-07-10 19:43:50 +00:00
Andy Clement e3e34b04d4 for Keith and his binder: fault in support for maps (if attempt made to reference into null map) and for general objects, e.g. foo.bar if foo was null, attempt to dynamically build foo. 2009-07-10 19:43:37 +00:00
Mark Pollack 0c16554e23 SPR-5803 and additional POM maintenance/development 2009-07-09 19:38:07 +00:00
Andy Clement a2bce8c2a8 SPR-5905: support for inner type references in type references 'T(com.foo.A$B)' or in ctor calls 'new com.foo.A$B()' 2009-07-07 17:24:58 +00:00
Andy Clement dbdac9fa31 SPR-5847: require quotes for dotted map key names, eg. map['a.b.c'] 2009-07-07 16:32:56 +00:00
Andy Clement a4b7ce168c SPR-5804: problems with map access if it is the root object; SPR-5847: alternative map referencing strategies: a.b == a[b] == a['b'] 2009-07-07 16:08:10 +00:00
Andy Clement eb69e7574b SPR-5899: Invoking methods or constructors passing null (including varargs support) 2009-07-06 19:21:26 +00:00
Andy Clement ea2580af68 SPR-5518: textual alternatives for operators (eq, lt, le, gt, ge, ne, div, mod, not) - removes messy escaping for expressions declared in XML. 2009-07-06 18:53:48 +00:00
Sam Brannen 8bfb56c75b [SPR-5887] Upgraded to JUnit 4.6.0. 2009-07-02 18:07:55 +00:00
Andy Clement 7e05c928dd support for concatenation with String via operator '+' - for Ramnivas. 2009-06-30 19:19:07 +00:00
Keith Donald d0079c6058 el-based message resolution; expected failure right now 2009-06-13 17:18:12 +00:00
Andy Clement 69e48828cc change from SpelMessages to SpelMessage. Changed exception getter to getMessageCode() from getMessageUnformatted 2009-06-11 16:17:44 +00:00
Andy Clement 12923f196a new feature for binder - automatically create lists and entries in lists upon referencing nulls 2009-06-02 16:42:43 +00:00
Andy Clement 1fc8abade7 updates for Binding code - able to retrieve the type descriptor for a property and ask detailed questions (eg getAnnotations()) 2009-06-02 00:25:59 +00:00
Andy Clement 88e32a3cfe test coverage. now > 95% 2009-05-27 19:59:32 +00:00
Andy Clement 233c84e0b9 test coverage 2009-05-27 19:37:17 +00:00
Andy Clement 1746cc76d1 findbugs issue addressed 2009-05-27 19:22:53 +00:00
Andy Clement e5fea54aea fix for ternary or elvis using a full expression for their result components. parser polishing 2009-05-27 19:16:45 +00:00
Andy Clement 0a2f936b80 remove antlr dependency 2009-05-27 04:38:36 +00:00
Andy Clement 886739f1d8 Hand written SpEL parser. Removed antlr dependency. tests upgraded to JUnit4 - 93% coverage. 2009-05-27 04:20:18 +00:00
Keith Donald b093094c50 renamed back to TypeDescriptor after ConversionContext proved not good enough name for any change 2009-05-23 21:23:10 +00:00
Keith Donald 8cbab5acb6 costin code review comments 2009-05-18 13:13:34 +00:00
Keith Donald 18be2ffadc fixed autoboxing bug 2009-05-17 02:22:02 +00:00
Keith Donald 4394dad372 commented out failing el test for now - todo 2009-05-15 21:34:11 +00:00
Keith Donald 46c9a003eb BindingPoint to ConversionPoint, javadoc 2009-05-15 20:32:23 +00:00
Keith Donald cf2453e8eb renamed TypeDescriptor to BindingPoint 2009-05-15 17:30:03 +00:00
Juergen Hoeller dffec3cdcd quick attempt to fix core.convert breakage 2009-05-15 11:35:41 +00:00
Juergen Hoeller bbd69da37f updated all Spring Framework OSGI manifests to list unversioned imports explicitly; relaxed several OSGi bundle dependencies to optional and extended version ranges 2009-05-12 16:43:15 +00:00
Keith Donald 796a457d9f added two way converter 2009-05-11 21:40:55 +00:00
Keith Donald 50985d5aa9 renamed executeConversion to simply convert for readibility 2009-05-11 21:25:33 +00:00
Keith Donald d7c90cff14 made ConversionExecutor internal; removed other unused operations from public SPI 2009-05-11 21:23:18 +00:00
Andy Clement d34a2c5d02 SPR-5663: test and fix: inconsistency between canRead() and read() on ReflectivePropertyResolver 2009-04-22 17:57:24 +00:00
Andy Clement 4c42597cbc SPR-5673: fix for problems with expressions that use the same symbols as are used in the template prefix/suffix 2009-04-22 00:10:47 +00:00
Andy Clement 9d6ae6c532 minor fix 2009-04-17 05:02:05 +00:00
Andy Clement d119411098 removed unnecessary class. improvements to map projection/selection 2009-04-16 19:21:50 +00:00
Andy Clement 2f27bd5da7 changed to [] from {} for projection and selection (including first and last selection). addresses the problem of clashes with template prefix/suffix 2009-04-15 23:54:52 +00:00
Thomas Risberg 1facd45c5e switched to use XInclude 2009-04-14 21:37:40 +00:00
Andy Clement 338a7ee2de SPR-5673: more intelligence in TemplateAwareExpressionParser. Supports prefix/suffix escaping and nesting of prefixes/suffixes 2009-04-14 21:26:56 +00:00
Andy Clement 2f5ba83416 more tests - about 82% coverage now. focused on testing reflection helper since it is rather complex. some asserts also added. 2009-04-13 20:51:52 +00:00
Andy Clement af6457a67d More tests. First pass on messages review. 2009-04-12 16:45:00 +00:00
Keith Donald 5a87334168 made conversion service pluggable 2009-04-10 20:52:16 +00:00
Keith Donald 1d22b9fb88 activated DefaultConversionService in EL, linking convert and EL 2009-04-10 20:47:04 +00:00
Andy Clement 38c7f566e5 Fixed StandardTypeLocator to only know about java.lang.* out of the box. Doc fixes related to that. 2009-04-10 03:20:09 +00:00
Andy Clement f36b9eb088 finally some comparator logic that makes sense :) 2009-04-10 02:21:25 +00:00
Andy Clement 46c5340f57 More tests, corrections in standard comparator, more helper methods in StandardEvaluationContext. 2009-04-10 00:03:53 +00:00
Andy Clement 00cecd0dd0 more tests, minor fixes. some findbugs issues addressed. 2009-04-09 22:03:38 +00:00
Andy Clement 707d2ed72a Changed signature of convertValue() to keep the Sun compiler happy 2009-04-09 16:00:53 +00:00
Mark Pollack 362629d03b Change version from 3.0.0.M3 to 3.0.0.BUILD-SNAPSHOT (again) 2009-04-09 14:38:35 +00:00
Andy Clement 9a8bb5f709 More tests and some fixes. Also created tests based on the documentation examples. 2009-04-09 01:43:07 +00:00
Andy Clement cfc65b0cc7 Removed unnecessary code. Increased test coverage from 70>75% - still some way to go 2009-04-08 04:50:43 +00:00
Andy Clement 30bed7b54a Corrected exception message inserts 2009-04-08 04:49:47 +00:00
Andy Clement a9f30fe377 Improving test coverage, more language consistency 2009-04-06 19:04:04 +00:00
Andy Clement c695d00dbe More test coverage for the expression AST 2009-04-04 01:04:31 +00:00
Andy Clement 4c5854d017 objects flowing around in expression evaluation are now TypedValue's - these carry generics info, used for conversions. 2009-04-03 23:39:14 +00:00
Mark Pollack 8f76197485 Change version from 3.0.0.M3 to 3.0.0.BUILD-SNAPSHOT 2009-04-03 14:03:48 +00:00
Andy Clement 959cc95c3f design change - no longer surfacing typeDescriptor through property accessor. conversion done internally in property write() code 2009-04-01 23:27:49 +00:00
Andy Clement 1289f1069c new packages added 2009-04-01 21:47:35 +00:00
Andy Clement 54865c0c1f initial typeDescriptor awareness in the EL. some basic testing of using GenericConversionService 2009-04-01 21:38:51 +00:00
Andy Clement c057638bd0 Indexed objects (arrays/maps/lists) now settable 2009-03-30 19:40:20 +00:00
Andy Clement 401b7f66c4 Indexed objects (arrays/maps/lists) now settable 2009-03-30 19:40:09 +00:00
Mark Pollack 351fba1a04 POM maintenance
Place parent pom in publicly accessible directory (org.sf.spring-parent).  
Create a component list pom in org.sf.spring-library.
2009-03-29 09:56:38 +00:00
Mark Pollack 74326a93d2 Fix SPEL tests when using maven. With the maven test runner expression.spel.SetValueTests is run before expression.spel.EvaluationTests. The order is reversed in eclipse/spring-build. Static variables are modifed in SetValueTests that cause EvaluationTests to fail if it is run first. Make a simple fix so SetValueTests uses a local evaluation context variable instead of a static variable. 2009-03-27 16:05:38 +00:00
Keith Donald 8d63a34652 set value tests 2009-03-24 19:55:39 +00:00
Mark Pollack 0b463c0838 SPR-5385, SPR-5301 - partial work committed. 2009-03-24 05:56:56 +00:00
Keith Donald be61846331 pruned bean references support as it was not used 2009-03-23 21:33:15 +00:00
Juergen Hoeller 5a09a2d642 polishing 2009-02-16 01:43:49 +00:00
Chris Beams da2175c0b7 * Updated Eclipse classpath metadata
* Fixed (or suppressed as necessary) JSP errors in petclinic
2009-02-14 03:09:59 +00:00
Juergen Hoeller ffb9625abf polishing 2009-02-13 09:11:03 +00:00
Juergen Hoeller 08dd18df58 revised expression parser API design 2009-02-12 23:03:58 +00:00
Andy Clement 84a4fe6d39 remove files 2008-12-13 01:38:21 +00:00
Andy Clement 6d03f881e9 new files 2008-12-13 01:36:48 +00:00
Andy Clement 5ff4008423 Refactored package structure and made some getValue() methods generic 2008-12-12 23:07:08 +00:00
Juergen Hoeller 4f40a6c313 fixed javadoc errors 2008-11-28 13:56:30 +00:00
Juergen Hoeller fda7100866 consistent compilation against Servlet 2.5, JSP 2.1 and JUnit 4.5 2008-11-27 21:49:10 +00:00
Juergen Hoeller b0790bf5e7 Java 5 code style 2008-11-27 00:27:52 +00:00
Juergen Hoeller 6bbc966a21 fixed test source configuration 2008-11-27 00:26:21 +00:00
Costin Leau 8ba93ae12c + fix import for org.antlr package versions 2008-11-26 09:56:50 +00:00
Costin Leau dca286d065 + migrated some manifest template changed from 2.5.x to 3.0.x 2008-11-25 22:20:53 +00:00
Juergen Hoeller 29657105da Java 5 code style 2008-11-25 01:29:54 +00:00
Juergen Hoeller 347f34c68a EL container integration; support for contextual objects; removal of deprecated Spring 2.0 functionality; Java 5 code style 2008-11-20 02:10:53 +00:00
Arjen Poutsma fe29a711f3 Updated projects and ivy.xmls 2008-11-17 15:09:17 +00:00
Andy Clement 470e086183 map access tests added 2008-09-17 16:20:40 +00:00
Andy Clement 769e706be7 removing: initializers/processors/in operator 2008-09-17 15:23:15 +00:00
Andy Clement afdf54eff8 renamed operator IS to INSTANCEOF, may yet delete.. 2008-09-16 17:20:03 +00:00
Andy Clement 39c966f419 bean references removed, no more @(context:beanname) 2008-09-16 17:13:31 +00:00
Andy Clement 95892dc993 removed lambda functions, local function and local variable references 2008-09-16 17:00:16 +00:00
Andy Clement efee3b3434 date literal removed 2008-09-16 16:50:00 +00:00
Andy Clement 8740b702f9 Changed so that existing getters/setters are used before direct field access is attempted 2008-09-16 00:00:06 +00:00
Andy Clement 17c88107d3 Removing functionality. Removed expression list support, cannot say (foo();bar()) any more 2008-09-15 21:55:11 +00:00
Andy Clement 4d43768889 Removing functionality. Removed soundslike/distanceto/like operators 2008-09-15 21:43:38 +00:00
Andy Clement 59a4427525 Final commit before the great 'stripdown'. Used clover to determine coverage and added tests as necessary. 2008-09-15 20:14:36 +00:00
Andy Clement 23db8b58da added test and behaviour for calling a java method with incorrect number of arguments 2008-08-18 22:43:17 +00:00
Andy Clement f79e2643a3 fixed up FunctionReference a bit - so it can call varargs methods 2008-08-18 22:36:25 +00:00
Andy Clement 2f05d70067 new function invocation tests for normal and error behaviour 2008-08-18 22:36:00 +00:00
Andy Clement 2fbb7ad327 changed vis of arg conversion code so function calls can use it 2008-08-18 22:35:21 +00:00
Andy Clement ec9cb8565b fixed damage caused by code formatter 2008-08-18 22:34:33 +00:00
Andy Clement 48055c6e20 added support for Integer > Float conversion.
Moved some tests from EvaluationTests into OperatorTests.
Fleshed out OperatorTests to verify type promotions for mixed type operands.
2008-08-18 17:54:01 +00:00
Andy Clement 776553cfbb more tests relating to reals 2008-08-18 17:06:24 +00:00
Andy Clement daf922456e more discussion points 2008-08-18 00:23:52 +00:00
Andy Clement 6e2682c78e code formatter chewed on it 2008-08-18 00:23:39 +00:00
Andy Clement 844b5236de corrected TODO 2008-08-18 00:23:13 +00:00
Andy Clement e443c836fe corrected use of AccessException (no longer used in ReflectionUtils) 2008-08-18 00:22:36 +00:00
Andy Clement 7fa4d9e928 moved TODOs to readme 2008-08-18 00:22:09 +00:00
Andy Clement 7d677b23d3 moved test into ParserErrorMessageTests 2008-08-18 00:21:45 +00:00
Andy Clement bea94c2371 modified Date tests 2008-08-18 00:21:21 +00:00
Andy Clement 90309a57d9 Made GMT the default Locale... 2008-08-18 00:21:00 +00:00
Andy Clement b9aa8552e0 added new TODO that the impl isn't as complete as it could be 2008-08-18 00:20:38 +00:00
Andy Clement bb2ef1fefa started fixing the formatting 2008-08-18 00:20:16 +00:00
Andy Clement 077fc1613d starting to sort out like/matches. Matches is the java regex related one. Like is the SQL related one. But the spring .net 'like' doesn't seem to be the same as the SQL doc I found for like... 2008-08-17 01:42:06 +00:00
Andy Clement c24df36689 moved some TODOs into readme 2008-08-17 01:28:37 +00:00
Andy Clement c6db7c41a4 improved javadoc, error handling and testing of matches 2008-08-17 01:28:26 +00:00
Andy Clement bb2ade5fdd javadoc 2008-08-17 01:27:59 +00:00
Andy Clement 29fe8da1ad fixing error handling in 'is' operator 2008-08-17 01:27:45 +00:00
Andy Clement 5c0d80ece7 fixing TODOs 2008-08-17 01:27:18 +00:00
Andy Clement 5d3e568326 fixing TODOs 2008-08-17 01:26:59 +00:00
Andy Clement 88c370ad5d fixing TODOs 2008-08-17 01:26:45 +00:00
Andy Clement 80075f18ce fixing TODOs 2008-08-17 01:26:11 +00:00
Andy Clement 9e7cb0e1cf fixing TODOs 2008-08-17 01:25:57 +00:00
Andy Clement 5a68d0ee4e fixing TODOs 2008-08-17 01:25:43 +00:00