[jboss-user] [Javassist user questions] - Re: Using Javassist inside Mojo
ad-rocha
do-not-reply at jboss.com
Thu Jun 4 15:07:08 EDT 2009
Chiba,
It seems that testng-5.8-jdk15.jar is already in classpath. Look at this:
Thread.currentThread().getContextClassLoader() and classPool.getClass().getClassLoader() are the same:
System.out.println(Thread.currentThread().getContextClassLoader()):
| ClassRealm[/plugins/org.codecompany:jeha-plugin:1.0-SNAPSHOT at 48/thread:main, parent: ClassRealm[plexus.core, parent: null]]
|
System.out.println(pool.getClass().getClassLoader()):
| ClassRealm[/plugins/org.codecompany:jeha-plugin:1.0-SNAPSHOT at 48/thread:main, parent: ClassRealm[plexus.core, parent: null]]
|
System.out.println(pool):
| [class path: java.lang.Object.class;C:\Andre\workspace\Pessoal\jeha\jeha-test\target\classes;C:\Andre\workspace\Pessoal\jeha\jeha-test\target\test-classes;C:\Andre\workspace\Pessoal\jeha\jeha-test\target\classes;C:\Andre\workspace\Pessoal\jeha\jeha-core\target\classes;java.util.jar.JarFile at 2585e;]
|
I believe that java.util.jar.JarFile at 2585e corresponds to testng-5.8-jdk15.jar
Would it happen if I put the whole class code here?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235472#4235472
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235472
More information about the jboss-user
mailing list