Skip to content

Commit e2b9c51

Browse files
committed
compatibility changes
1 parent 4d46750 commit e2b9c51

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

bc-build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
release.suffix: 154
33
release.name: 1.54
4-
release.version: 1.54.0
4+
release.version: 1.54
55
release.debug: false
66

77
mail.jar.home: /opt/javamail/mail.jar

core/src/main/java/org/bouncycastle/crypto/tls/TlsProtocol.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ public int readInput(byte[] buffer, int offset, int length)
757757
catch (IOException e)
758758
{
759759
// readApplicationData() only throws if there is no data available, so this should never happen
760-
throw new RuntimeException(e);
760+
throw new RuntimeException(e.toString()); // early JDK fix.
761761
}
762762
}
763763

core/src/main/java/org/bouncycastle/math/ec/tools/TraceOptimizer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.bouncycastle.math.ec.ECAlgorithms;
1515
import org.bouncycastle.math.ec.ECCurve;
1616
import org.bouncycastle.math.ec.ECFieldElement;
17+
import org.bouncycastle.util.Integers;
1718

1819
public class TraceOptimizer
1920
{
@@ -73,7 +74,7 @@ public static void implPrintNonZeroTraceBits(X9ECParameters x9)
7374
int tr = calculateTrace(fe);
7475
if (tr != 0)
7576
{
76-
nonZeroTraceBits.add(i);
77+
nonZeroTraceBits.add(Integers.valueOf(i));
7778
System.out.print(" " + i);
7879
}
7980
}

pkix/src/main/java/org/bouncycastle/cms/PKCS7TypedStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public InputStream getContentStream()
3434
}
3535
catch (IOException e)
3636
{
37-
throw new IllegalStateException("unable to convert content to stream: " + e.getMessage(), e);
37+
throw new CMSRuntimeException("unable to convert content to stream: " + e.getMessage(), e);
3838
}
3939
}
4040

0 commit comments

Comments
 (0)