HCOLL-133 CloseablesManager.checkState is throwing java.lang.IllegalStateException

This commit is contained in:
Rob Austin
2014-09-23 19:17:04 +01:00
parent 511f195a9f
commit abc56b855a
3 changed files with 45 additions and 4 deletions
@@ -9,8 +9,20 @@ import static net.openhft.chronicle.map.Alignment.NO_ALIGNMENT;
import static net.openhft.chronicle.map.Builder.getPersistenceFile;
public class Issue42 {
private static String OS = System.getProperty("os.name").toLowerCase();
public static boolean isWindows() {
return (OS.indexOf("win") >= 0);
}
@Test
public void crashJVMWindowsTest() throws IOException {
if (!isWindows())
return;
final ChronicleMap<CharSequence, CharSequence> map = ChronicleMapBuilder
.of(CharSequence.class, CharSequence.class)
.entryAndValueAlignment(NO_ALIGNMENT)