Skip to content

Commit 04ffb14

Browse files
committed
Java 5 compatibility tweak
1 parent b2c14ba commit 04ffb14

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

core/src/main/jdk1.5/org/bouncycastle/util/Exceptions.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ public static IllegalStateException illegalStateException(String message, Throwa
1414
return new IllegalStateException(message, cause);
1515
}
1616

17-
public static IOException ioException(String message, Throwable cause)
17+
public static IOException ioException(String message, final Throwable cause)
1818
{
19-
return new IOException(message + "-" + cause.getMessage());
19+
return new IOException(message + "-" + cause.getMessage())
20+
{
21+
public synchronized Throwable getCause()
22+
{
23+
return cause;
24+
}
25+
};
2026
}
21-
2227
}

0 commit comments

Comments
 (0)