Permalink
Browse files

Also the last parameter must be an IAtom

Change-Id: Ieaf5ae528623e558b2ab0eb5d240d9cfa9035bff
  • Loading branch information...
1 parent 2f3f480 commit c1a660a90989c6d20b59a672ca447f96bb385d09 @egonw egonw committed May 15, 2012
@@ -417,7 +417,8 @@ private String getNoConstructorFoundMessage(Class clazz) {
} else {
// the IBond(IAtom[]) constructor
boolean allIAtom = true;
- for (int i=0; i<(params.length-1) && allIAtom; i++) {
+ for (int i=0; i<params.length && allIAtom; i++) {
+ System.out.println(params[i]);
if (!(params[i] instanceof IAtom)) allIAtom = false;
}
if (allIAtom) {
@@ -409,7 +409,7 @@ private String getNoConstructorFoundMessage(Class clazz) {
} else {
// the IBond(IAtom[]) constructor
boolean allIAtom = true;
- for (int i=0; i<(params.length-1) && allIAtom; i++) {
+ for (int i=0; i<params.length && allIAtom; i++) {
if (!(params[i] instanceof IAtom)) allIAtom = false;
}
if (allIAtom) {

0 comments on commit c1a660a

Please sign in to comment.