7 Replies Latest reply on Aug 16, 2005 3:12 AM by Tom Baeyens

    FieldInstantiator doesnt consider inherited fields.

    Alejandro Guizar Master

      There are side effects. From the javadoc for getField():

      Returns a Field object that reflects the specified public member field of the class or interface

      Effectively, getField() recurses upon superclasses, but only considers public fields. Conversely, getDeclaredField() considers all fields but does not recurse.
      Of course, jBPM should support inheritance of actions. Could you please open a JIRA issue?

      I propose that FieldInstantiator calls getDeclaredField() not only on the target class but all its superclasses until the field is found or Object.class is reached.