You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by 王浩 <pe...@gmail.com> on 2013/04/15 06:02:11 UTC

Apache Shiro 1.2.1 compile error

Hi,

I have been check out Apache Shiro 1.2.1. However, this will not compile:

BeanTypeListenerTest.java

expect(injector.getInstance(BeanTypeListener.MAP_KEY)).andReturn(Collections.EMPTY_MAP).anyTimes();

The method andReturn(capture#1-of ?) in the type
IExpectationSetters<capture#1-of ?> is not applicable for the arguments
(Map)

SimpleFilterChainResolverTest.java

expect(injector.getInstance(key2a)).andReturn(filter2a);
The method andReturn(capture#7-of ? extends Filter) in the type
IExpectationSetters<capture#7-of ?
 extends Filter> is not applicable for the arguments (Filter)

expect(injector.getInstance(key2b)).andReturn(filter2b);
The method andReturn(capture#8-of ? extends Filter) in the type
IExpectationSetters<capture#8-of ?
 extends Filter> is not applicable for the arguments (Filter)

Any help appreciated!

Thanks in advance,

Peter