mirror of https://github.com/apache/lucene.git
LUCENE-5704: Fix compilation error with Java 8u20
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1597299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3e4aaafe9f
commit
29adbc5bd6
|
@ -223,6 +223,8 @@ Bug fixes
|
|||
this is IndexWriter.deleteAll, or opening an IndexWriter with
|
||||
OpenMode.CREATE) (Mike McCandless)
|
||||
|
||||
* LUCENE-5704: Fix compilation error with Java 8u20. (Uwe Schindler)
|
||||
|
||||
Test Framework
|
||||
|
||||
* LUCENE-5622: Fail tests if they print over the given limit of bytes to
|
||||
|
|
|
@ -105,10 +105,10 @@ class DirectDocValuesProducer extends DocValuesProducer {
|
|||
}
|
||||
}
|
||||
|
||||
String dataName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, dataExtension);
|
||||
this.data = state.directory.openInput(dataName, state.context);
|
||||
success = false;
|
||||
try {
|
||||
String dataName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, dataExtension);
|
||||
data = state.directory.openInput(dataName, state.context);
|
||||
final int version2 = CodecUtil.checkHeader(data, dataCodec,
|
||||
VERSION_START,
|
||||
VERSION_CURRENT);
|
||||
|
|
|
@ -126,10 +126,10 @@ class MemoryDocValuesProducer extends DocValuesProducer {
|
|||
}
|
||||
}
|
||||
|
||||
String dataName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, dataExtension);
|
||||
this.data = state.directory.openInput(dataName, state.context);
|
||||
success = false;
|
||||
try {
|
||||
String dataName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, dataExtension);
|
||||
data = state.directory.openInput(dataName, state.context);
|
||||
final int version2 = CodecUtil.checkHeader(data, dataCodec,
|
||||
VERSION_START,
|
||||
VERSION_CURRENT);
|
||||
|
|
|
@ -126,10 +126,10 @@ class Lucene42DocValuesProducer extends DocValuesProducer {
|
|||
}
|
||||
}
|
||||
|
||||
String dataName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, dataExtension);
|
||||
this.data = state.directory.openInput(dataName, state.context);
|
||||
success = false;
|
||||
try {
|
||||
String dataName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, dataExtension);
|
||||
data = state.directory.openInput(dataName, state.context);
|
||||
final int version2 = CodecUtil.checkHeader(data, dataCodec,
|
||||
VERSION_START,
|
||||
VERSION_CURRENT);
|
||||
|
|
|
@ -127,10 +127,10 @@ public class Lucene45DocValuesProducer extends DocValuesProducer implements Clos
|
|||
}
|
||||
}
|
||||
|
||||
String dataName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, dataExtension);
|
||||
this.data = state.directory.openInput(dataName, state.context);
|
||||
success = false;
|
||||
try {
|
||||
String dataName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, dataExtension);
|
||||
data = state.directory.openInput(dataName, state.context);
|
||||
final int version2 = CodecUtil.checkHeader(data, dataCodec,
|
||||
Lucene45DocValuesFormat.VERSION_START,
|
||||
Lucene45DocValuesFormat.VERSION_CURRENT);
|
||||
|
|
Loading…
Reference in New Issue