mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 03:55:28 -04:00
#631 Attempt to fix tests for JDK 15 & 16
This commit is contained in:
parent
38caeb22e0
commit
f8284700b4
@ -117,7 +117,9 @@ public class ColorProfilesTest {
|
|||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = IllegalArgumentException.class)
|
||||||
public void testReadProfileRawBadData() throws IOException {
|
public void testReadProfileRawBadData() throws IOException {
|
||||||
ColorProfiles.readProfileRaw(new ByteArrayInputStream(new byte[5]));
|
// NOTE: The array here is larger, as there's a bug in OpenJDK 15 & 16, that throws
|
||||||
|
// ArrayIndexOutOfBoundsException if the stream is shorter than the profile signature...
|
||||||
|
ColorProfiles.readProfileRaw(new ByteArrayInputStream(new byte[40]));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IllegalArgumentException.class)
|
@Test(expected = IllegalArgumentException.class)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user