Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
2.3.4
-
None
-
None
-
Downloaded Struts 2.3.4
JDK 1.7.0_45
Maven 3.1.1
Description
Downloaded Struts 2.3.4 last week and ran into alot of issues with com.opensymphony.xwork2.ognl.OgnlValueStackTest setValue /Ognl findValue
Background:: accessing objects the 'Ognl hierarchy' I always found what i was looking for e.g.
Foo foo=new Foo();
Dog dog = new Dog();
foo.setDog(dog);
vs.setValue("foo", foo);
Object o=vs.findValue("Foo.Dog") //returns dog object embedded in foo
if(o instanceof Dog) //always true no problem here
{
Dog dog=(Dog)o; //Cast is correct without errors or exceptions
}
but failure when using OGNL to access orphaned objects e.g.
public void testDoesNotFailOnNonActionObjects()
Has anyone been able to run OgnlValueStackTest w/o failures and errors recently?
Thanks,
Martin-