DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=36210>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36210 Summary: error using idrefs to external types Product: Ant Version: 1.6.5 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] Hi! I use the cc task <http://ant-contrib.sourceforge.net/cc.html> with Ant 1.6.5. I came accross the following problem. If I install the cpptasks.jar file in a directory other than Ant's lib directory, I am unable to use idrefs to elements defined in cpptask. For example, if within the cc task I use a defineset element to set a precompiler #define, I get an error: ... doesn't denote a DefineSet. On the other hand, if I install cpptasks.jar in the ant/lib directory, everything works OK. The exception is raised at DataType.java:154-156. The isAssignableFrom() call returns false even though the required and the referenced class have the same type signatures. What I found was that if cpptasks.jar is not in ant/lib, the classes are loaded using different class loaders. I am not sure about the implementation of Class.isAssignableFrom() but I suspect it considers classes loaded with different loaders to be different classes. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]