You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Michael Roepke, Filekeys" <mi...@filekeys.com> on 2009/11/06 00:35:05 UTC

Compiler Error in Test Code of CXF Transport NMR

Hi all,

when I try to compile inside or outside Eclipse following test code

    @Test
    public void testSendOut() throws Exception {
.......
        EasyMock.expect(method.getDeclaringClass()).andStubReturn(

(Class<?>)org.apache.servicemix.cxf.transport.nmr.Greeter.class);
.......

I get following compiler Error.....

[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
D:\projects\filekeys\tools\apache\apache-servicemix-4.1.0.2-fuse\src\cxf\cxf-transport-nmr\src\test\java\org\apache\servicemix\cxf\transport\nmr\NMRConduitTest.java:[74,51]
andStubReturn(jav
a.lang.Class<capture#993 of ?>) in
org.easymock.IExpectationSetters<java.lang.Class<capture#993 of ?>>
cannot be applied to (java.lang.Class<capture#696 of ?>)

It is the only compiler error I get! I was sittng for hours trying to
figure out what happens here, but couldnt.

Any help is highly appreciated!!

Good night
Michael

-- 
Filekeys Ltd.
Michael Roepke
Praça da Alegria 18, 4D
1250-004 Lisboa, Portugal
www.filekeys.com
+351 96 75 93 528
+49 178 391 38 38

Re: Compiler Error in Test Code of CXF Transport NMR

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

I believe this already get fixed by SMX4-385[1].

You need ensure you are using the latest code base

[1]http://svn.apache.org/viewvc?revision=818903&view=revision

Freeman
On 2009-11-6, at 上午7:35, Michael Roepke, Filekeys wrote:

> Hi all,
>
> when I try to compile inside or outside Eclipse following test code
>
>    @Test
>    public void testSendOut() throws Exception {
> .......
>        EasyMock.expect(method.getDeclaringClass()).andStubReturn(
>
> (Class<?>)org.apache.servicemix.cxf.transport.nmr.Greeter.class);
> .......
>
> I get following compiler Error.....
>
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> D:\projects\filekeys\tools\apache\apache-servicemix-4.1.0.2-fuse\src 
> \cxf\cxf-transport-nmr\src\test\java\org\apache\servicemix\cxf 
> \transport\nmr\NMRConduitTest.java:[74,51]
> andStubReturn(jav
> a.lang.Class<capture#993 of ?>) in
> org.easymock.IExpectationSetters<java.lang.Class<capture#993 of ?>>
> cannot be applied to (java.lang.Class<capture#696 of ?>)
>
> It is the only compiler error I get! I was sittng for hours trying to
> figure out what happens here, but couldnt.
>
> Any help is highly appreciated!!
>
> Good night
> Michael
>
> -- 
> Filekeys Ltd.
> Michael Roepke
> Praça da Alegria 18, 4D
> 1250-004 Lisboa, Portugal
> www.filekeys.com
> +351 96 75 93 528
> +49 178 391 38 38


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com


Re: Compiler Error in Test Code of CXF Transport NMR

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

I believe this already get fixed by SMX4-385[1].

You need ensure you are using the latest code base

[1]http://svn.apache.org/viewvc?revision=818903&view=revision

Freeman
On 2009-11-6, at 上午7:35, Michael Roepke, Filekeys wrote:

> Hi all,
>
> when I try to compile inside or outside Eclipse following test code
>
>    @Test
>    public void testSendOut() throws Exception {
> .......
>        EasyMock.expect(method.getDeclaringClass()).andStubReturn(
>
> (Class<?>)org.apache.servicemix.cxf.transport.nmr.Greeter.class);
> .......
>
> I get following compiler Error.....
>
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> D:\projects\filekeys\tools\apache\apache-servicemix-4.1.0.2-fuse\src 
> \cxf\cxf-transport-nmr\src\test\java\org\apache\servicemix\cxf 
> \transport\nmr\NMRConduitTest.java:[74,51]
> andStubReturn(jav
> a.lang.Class<capture#993 of ?>) in
> org.easymock.IExpectationSetters<java.lang.Class<capture#993 of ?>>
> cannot be applied to (java.lang.Class<capture#696 of ?>)
>
> It is the only compiler error I get! I was sittng for hours trying to
> figure out what happens here, but couldnt.
>
> Any help is highly appreciated!!
>
> Good night
> Michael
>
> -- 
> Filekeys Ltd.
> Michael Roepke
> Praça da Alegria 18, 4D
> 1250-004 Lisboa, Portugal
> www.filekeys.com
> +351 96 75 93 528
> +49 178 391 38 38


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com