changeset 1381:0315ed60dd58

7901849: BenchmarkException.getCause is too strict and fails during normal printing
author shade
date Tue, 29 Nov 2016 16:14:11 +0100
parents 33924b860fd0
children bf7249ffbfd2
files jmh-core/src/main/java/org/openjdk/jmh/runner/BenchmarkException.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/BenchmarkException.java	Tue Nov 29 16:06:36 2016 +0100
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/BenchmarkException.java	Tue Nov 29 16:14:11 2016 +0100
@@ -46,6 +46,6 @@
 
     @Override
     public Throwable getCause() {
-        throw new UnsupportedOperationException("BenchmarkException only has suppressed causes");
+        return null;
     }
 }