Message: The following issue has been re-assigned.
Assignee: Matthias Germann (mailto:[EMAIL PROTECTED]) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1124 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1124 Summary: Invlid code generated in XxxxUtil class Type: Bug Status: Open Priority: Major Original Estimate: 1 hour Time Spent: Unknown Remaining: 1 hour Project: XDoclet Components: EJB Module Versions: 1.2.1 Assignee: Matthias Germann Reporter: Fred Nowak Created: Thu, 21 Oct 2004 7:40 AM Updated: Wed, 2 Feb 2005 4:52 PM Environment: Windows XP/Eclipse Description: Here is the method generated in XxxUtil bean class : private static Object lookupHome(java.util.Hashtable environment, String jndiName, Class narrowTo) throws javax.naming.NamingException { // Obtain initial context javax.naming.InitialContext initialContext = new javax.naming.InitialContext(environment); try { Object objRef = initialContext.lookup(jndiName); // only narrow if necessary if (narrowTo.isInstance(java.rmi.Remote.class)) return javax.rmi.PortableRemoteObject.narrow(objRef, narrowTo); else return objRef; } finally { initialContext.close(); } } the compare statement narrowTo.isInstance(java.rmi.Remote.class) is never true when called with a Class object as parameter. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel