I ended up adding a new test case while checking that the @SpringBean
field injection was working fine on base classes (which it is :) so
thought I'd send the patch in case its of any use to include in the
trunk. Its a pretty trivial change but is here if you want it :)

--

James
-------
http://radio.weblogs.com/0112098/
Index: .
===================================================================
--- .	(revision 409)
+++ .	(working copy)
@@ -124,7 +124,7 @@
         @SpringBean private TestActionBean testActionBean;
         TestActionBean getBean() { return testActionBean; }
     }
-
+    
     @Test(groups="fast")
     public void testImplicitFieldInjection() {
         ImplicitFieldTarget target = new ImplicitFieldTarget();
@@ -131,6 +131,18 @@
         SpringHelper.injectBeans(target, ctx);
         Assert.assertNotNull(target.getBean());
     }
+    
+    ///////////////////////////////////////////////////////////////////////////
+    
+    private static class DerivedFromImplicitFieldTarget extends ImplicitFieldTarget {
+    }
+
+    @Test(groups="fast")
+    public void testDerivedFromImplicitFieldInjection() {
+        DerivedFromImplicitFieldTarget target = new DerivedFromImplicitFieldTarget();
+        SpringHelper.injectBeans(target, ctx);
+        Assert.assertNotNull(target.getBean());
+    }
 
     ///////////////////////////////////////////////////////////////////////////
 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to