Details
-
Bug
-
Resolution: Done
-
Major
-
fuse-7.11.1-GA
-
None
Description
Once getProperties(String, Class) fails, it will never work for the same arguments.
Attached a reproducer. There are 4 steps.
- set Empty ArrayList // Object should be set in the ArrayList
- do getProperty() // It will result null. Which is an expected behavior
- set ArrayList // Now, there is an object in the ArrayList
- do getProperty() // It should work. but actually, it will return null.
log
14:12:40.966 [Camel (MyCamel) thread #1 - timer://foo] INFO org.mycompany.SampleBean - ArrayList size: 0 14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO org.mycompany.SampleBean - dummy object:null 14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO org.mycompany.SampleBean - dummy object(use workaround):[] 14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO org.mycompany.SampleBean - ArrayList size: 1 14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO org.mycompany.SampleBean - dummy object:null 14:12:40.968 [Camel (MyCamel) thread #1 - timer://foo] INFO org.mycompany.SampleBean - dummy object(use workaround):[org.mycompany.Dummy@31d59fc1]