diff --git a/uk/ac/sanger/artemis/io/DocumentEntryFactory.java b/uk/ac/sanger/artemis/io/DocumentEntryFactory.java index 57acb429603f594d3e5ab7ef5ae77a86c7d41da9..ad713b701b0deeeda061fc196f8b143a20bbe40f 100644 --- a/uk/ac/sanger/artemis/io/DocumentEntryFactory.java +++ b/uk/ac/sanger/artemis/io/DocumentEntryFactory.java @@ -104,7 +104,8 @@ abstract public class DocumentEntryFactory final ReadListener listener) throws IOException, EntryInformationException { - if(document.getInputStream() instanceof net.sf.samtools.util.BlockCompressedInputStream) + if(!System.getProperty("java.version").startsWith("1.5.") && + document.getInputStream() instanceof net.sf.samtools.util.BlockCompressedInputStream) { if(IndexedGFFDocumentEntry.isIndexed( ((File)document.getLocation()) )) return new IndexedGFFDocumentEntry(document);