equal
deleted
inserted
replaced
84 } |
84 } |
85 } |
85 } |
86 if (error > 0) { |
86 if (error > 0) { |
87 System.out.println("\nTEST FAILED"); |
87 System.out.println("\nTEST FAILED"); |
88 throw new Exception("TEST FAILED: " + error + " wrong return types"); |
88 throw new Exception("TEST FAILED: " + error + " wrong return types"); |
89 } else if (tested != returnTypes.length) { |
89 } else if (tested != returnTypes.length && |
|
90 !System.getProperty("java.specification.version").equals("1.5")) { |
90 System.out.println("\nTEST FAILED"); |
91 System.out.println("\nTEST FAILED"); |
91 throw new Exception("TEST FAILED: " + tested + " cases tested, " + |
92 throw new Exception("TEST FAILED: " + tested + " cases tested, " + |
92 returnTypes.length + " expected"); |
93 returnTypes.length + " expected"); |
93 } else { |
94 } else { |
94 System.out.println("\nTEST PASSED"); |
95 System.out.println("\nTEST PASSED"); |