Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/home In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12491/modules/ejb/src/xdoclet/modules/ejb/home
Modified Files: HomeTagsHandler.java Log Message: Fixed exeptions list for finder and create methods which declare exception but no CreateExeption / FinderException (XDT-862) Index: HomeTagsHandler.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/home/HomeTagsHandler.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -r1.35 -r1.36 *** HomeTagsHandler.java 2 Feb 2005 21:42:27 -0000 1.35 --- HomeTagsHandler.java 8 Feb 2005 18:59:10 -0000 1.36 *************** *** 839,850 **** comma = true; } ! if (exc.length() == 0) { ! if (tagType.equals("ejb:finder")) { ! exc.append("javax.ejb.FinderException"); } ! else if (tagType.equals("ejb:create-method")) { ! exc.append("javax.ejb.CreateException"); } } if (type.equalsIgnoreCase("remote")) { if (exc.length() > 0) { --- 839,860 ---- comma = true; } ! // Add javax.ejb.FinderException to the exception list of finder methods ! // if not already done ! if (tagType.equals("ejb:finder") && exc.indexOf("javax.ejb.FinderException") < 0) { ! if (exc.length() > 0) { ! exc.append(","); } ! exc.append("javax.ejb.FinderException"); ! } ! // Add javax.ejb.CreateException to the exception list of create methods ! // if not already done ! if (tagType.equals("ejb:create-method") && exc.indexOf("javax.ejb.CreateException") < 0) { ! if (exc.length() > 0) { ! exc.append(","); } + exc.append("javax.ejb.CreateException"); } + // Add java.rmi.RemoteExceptions to the exception list of remote and remote home + // interfaces if (type.equalsIgnoreCase("remote")) { if (exc.length() > 0) { ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel