I'll need some more info than this to go on.

Why are you modifying the Person Interface?

If you want to add extra fields you can just create your own PersonImpl
class and bind it with Guice.

public class FooPersonImpl extends PersonImpl {
  ...
  public String getFoo() { .. }
  public void setFoo(String foo) { ... }
}

and in your guice binding do something like this:

bind(Person.class).to(FooPersonImpl.class);


On Fri, Feb 26, 2010 at 4:51 AM, Pranav Modi <[email protected]> wrote:

> I have changed the Person.java Interface to add some fields for data it
> does
> not support in the default implementation. But now when I compile it, the
> test classes that use the Person Interface are not compiling. Is there some
> way around it, like disabling the tests or fixing the error in some way?
> This is the type of error I am getting -
>
>
> \copyofshin\java\social-api\src\test\java\org\apache\shindig\social\sample\spi\J
> sonDbOpensocialServiceTest.java:[72,84] incompatible types
> found   : java.lang.String
> required: org.apache.shindig.social.opensocial.model.Person
>
> Thanks,
> Pranav.
>

Reply via email to