Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2583

Intercepted subclass should skip methods that have private/package private method params from different packages

    XMLWordPrintable

Details

    Description

      While creating intercepted subclass, we should skip methods that have parameters which are private/package private classes from different packages.

      The subclass can easily reside in different package then the parameter class which will result in IllegalAccessError upon invocation.

      We could leverage ProxiedMethodFilter and add a check not to add methods with offending param types. While at it, we should also log a warning.

      I've created a reproduce which cam be found here - https://github.com/manovotn/core/tree/weld2583

      Attachments

        Issue Links

          Activity

            People

              manovotn Matěj Novotný
              manovotn Matěj Novotný
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: