User: dsundstrom
  Date: 02/01/29 19:23:03

  Modified:    src/main/org/jboss/ejb/plugins/cmp/ejbql Parser.java
  Log:
  Changed ejb-ql parser to throw an exception if it is unable to fully parse
  the ejb-ql.
  
  Revision  Changes    Path
  1.5       +2 -5      jboss/src/main/org/jboss/ejb/plugins/cmp/ejbql/Parser.java
  
  Index: Parser.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/ejbql/Parser.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Parser.java       2001/09/01 22:03:15     1.4
  +++ Parser.java       2002/01/30 03:23:03     1.5
  @@ -57,11 +57,8 @@
            }
         }
   
  -      if(completeMatches.size()==0) {
  -         return best(set);
  -      }
  -      if(completeMatches.size() > 1) {
  -         throw new IllegalStateException("Multiple assemblies matched: 
"+set.size());
  +      if(completeMatches.size() != 1) {
  +         return null;
         }
         return (Assembly)completeMatches.iterator().next();
      }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to