Why not add a test case in any case? More coverage is always good.

static abstract class Abstract {}
public void testGetAbstractClass() {
  try {
    Guice.createInjector().getInstance(Abstract.class);
    fail("Creating abstract classes should throw an exception.");
  } catch (NullPointerException npe) {
    fail(npe.getMessage());
  } catch (RuntimeException expected) {} // or whatever we should be getting
}

On Sun, Sep 14, 2008 at 6:12 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:

>
> On Sep 13, 11:06 pm, kani <[EMAIL PROTECTED]> wrote:
> > For no apparent reason I had been trying to instantiate an abstract class
> through Guice.
>
> I suspect this is already fixed in the newer Guice
> snapshots -- which version are you using?
>
> Could you do me a favour and run the same code
> against the latest snapshot? If it's still an issue I'd
> like to make sure it's fixed.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to