users@jaxb.java.net

Re: Strange plugin problem

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 06 Jun 2005 20:20:03 +0200

Hi.

> I've started HyperJAXB 2 and immediately met some kind of a VERY strange
> problem.

Even stranger.

When I examine

return a.toArray((T[])Array.newInstance(clazz,a.size()));

it appears that under Ant

a.get(0).getClass().getSuperclass().getSuperclass().getSuperclass()
is
class com.sun.tools.xjc.Plugin

but

Class.forName("com.sun.tools.xjc.Plugin").isAssignableFrom(a.get(0))
is
false

And still, a is a typed array list:

             ArrayList<T> a = new ArrayList<T>();

where T is clearly a Plugin class.

I'm completely lost.

Bye.
/lexi