Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-44313

MethodHandler should not have caller to control whether or not to create a new instance to perform the method invocation

    Details

    • Branch Version/s:
      6.2.x
    • Backported to Branch:
      Committed

      Description

      If the target method is a static one, create or not create a instance of the target class makes no difference.

      If the target method is a non-static one, not creating a instance of the target class will lead to NPE failure which is not acceptable.

      So the MethodHandler should always create instance automatically for non static methods, always not to create instance for static methods. This should be not decided by caller.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                justin.choi Justin Choi
                Reporter:
                shuyang.zhou Shuyang Zhou
                Recent user:
                Shalaka Tendulkar
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: