jdk/test/javax/management/mxbean/MBeanOperationInfoTest.java
changeset 1004 5ba8217eb504
parent 2 90ce3da70b43
child 1247 b4c26443dee5
equal deleted inserted replaced
1003:b2f6b7e00c29 1004:5ba8217eb504
    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");