Hi,

I'm seeing the same error on Groovy container inside Eclipse. And the following diff fixes the complaint (I assume the existing code is valid).

-        expect(factory.getInstance()).andReturn("bar");
+        expect((String) factory.getInstance()).andReturn("bar");

I also ran into an issue that Eclipse cannot recognize Map<String, InboudWire>.

It seems that it's an eclipse bug. BTW, I'm running Eclipse 3.2.

Thanks,
Raymond


----- Original Message ----- From: "ant elder" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 11, 2006 5:03 AM
Subject: Compile errors in Eclipse


When I set up the Tuscany eclipse projects with mvn -Peclipse
eclipse:eclipse there are some compile errors in the eclipse projects.

One in the Groovy container:

The method andReturn(capture-of ?) in the type
IExpectationSetters<capture-of ?> is not applicable for the arguments
(String)    PropertyTestCase.java
groovy/src/test/java/org/apache/tuscany/container/groovy    line 52    11
August 2006 12:54:04    11027

and half a dozen of these errors in the databinding code:

Type mismatch: cannot convert from DirectedGraph<String,Object>.Vertex to
DirectedGraph<V,E>.Vertex    DirectedGraphTestCase.java
databinding-framework/src/test/java/org/apache/tuscany/databinding/impl
line 47    11 August 2006 12:53:36    10535

The code compiles fine outside of eclipse with mvn, so I guess this is an
eclipse compiler thing. Do others see these in eclipse or know how to fix
them?

  ...ant



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to