You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Antoine Dupuis (JIRA)" <ji...@apache.org> on 2013/02/22 15:32:13 UTC

[jira] [Created] (WICKET-5052) @SpringBean fails to inject composite interfaces

Antoine Dupuis created WICKET-5052:
--------------------------------------

             Summary: @SpringBean fails to inject composite interfaces
                 Key: WICKET-5052
                 URL: https://issues.apache.org/jira/browse/WICKET-5052
             Project: Wicket
          Issue Type: Bug
          Components: wicket-spring
    Affects Versions: 1.5.10, 6.6.0
         Environment: Tomcat 6.0.35
Java 1.6.0.37

            Reporter: Antoine Dupuis


@SpringBean fails to inject properly classes with a composite interface.

eg :

interface Something1 {}

interface Something2 {}

interface Something extends Something1, Something2 {}

class TestBean implements Something {}

public class TestPage extends WebPage {
@SpringBrean
private SomethingInterface something;
}

Trying to inject a bean implementing the Something interface does not seems to fail at first, but when calling any method an IllegalAccessException is thrown, similar to this :
java.lang.IllegalAccessException: Class org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler can not access a member of class {replaced} with modifiers "public abstract"

I've attached different test cases reproducing the problem.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira