<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=guitarking117" rel="nofollow">Nick Williams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7619?redirect=false" rel="nofollow">SPR-7619</a></strong> and commented</p>
<p dir="auto">MappingJacksonJsonView is a very simple implementation of a JSON-rendering view. There are many cases where one might need to extend MappingJacksonJsonView to accomplish more complicated tasks. It would be nice if the "objectMapper," "encoding," "prefixJson" and "renderedAttributes" fields could be made protected instead of private to make extending MappingJacksonJsonView a little easier.</p>
<p dir="auto">Thanks!</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.1</p>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/f57bc1aaaafa0ccb94cfef57e34cf8aa099ade6f/hovercard" href="https://github.com/spring-projects/spring-framework/commit/f57bc1aaaafa0ccb94cfef57e34cf8aa099ade6f"><tt>f57bc1a</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=astefan" rel="nofollow">Andrei Stefan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3556?redirect=false" rel="nofollow">SPR-3556</a></strong> and commented</p>
<p dir="auto">I made two tests:</p>
<ul dir="auto">
<li>one with AspectJ support;</li>
<li>one with Spring's AspectJ support.</li>
</ul>
<p dir="auto">The tests involve two interfaces: Base&lt;T&gt; and DerivedInterface&lt;T&gt; extends Base&lt;T&gt;.<br>
A Before pointcut matching all methods from Base and DerivedInterface is defined: <code class="notranslate">@Before</code>("execution(* example.Base+.*(..))")<br>
In AspectJ a test creating an instance of a class implementing DerivedInterface: DerivedInterface&lt;String&gt; obj = new DerivedString(); and then calling methods on both interfaces demonstrates advice being applied on both methods.<br>
The same test in Spring getting a bean instance from ApplicationContext like DerivedInterface&lt;String&gt; bean = (DerivedInterface&lt;String&gt;) context.getBean("myBean"); and calling methods on both interfaces, the advice is not applied to methods receiving as parameter the generic type &lt;T&gt;.</p>
<p dir="auto">Methods like method(&lt;T&gt;) don't get the advice applied, but method2() have the advice applied.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.5, 2.1 M3</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/12641/SpringAspectJ.zip" rel="nofollow">SpringAspectJ.zip</a> (<em>1.86 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398079012" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8309" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8309/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8309">#8309</a> Spring AOP <code class="notranslate">@Aspect</code> pointcut ignores generic type params and matches to many join points  (<em><strong>"is depended on by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398080881" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8559" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8559/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8559">#8559</a> AspectJ pointcut expressions fail to match generically parameterized methods (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>