Hello once again
I have problem with class loading.
Given code:
1 ClassPool pool = ClassPool.getDefault();
| 2 Loader cl = new Loader(pool); Class c = null;
| 3 try {
| 4 c = Class.forName(pClassName);
| 5 } catch (ClassNotFoundException e1) {
| 6 e1.printStackTrace();
| 7 }
| 8 CtClass cc;
| 9 try {
| 10 log.debug(" Getting class: " + pClassName);
| 11 cc = pool.get(c.getName());
throws me NotFoundException at line 11 and i can't understand why such thing
happens. Why is class seen at 4th line and at 11 it can't be found?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894438#3894438
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894438
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user