Workaround JDK-8056984

This commit works around JDK bug JDK-8056984 in the javac compiler.
This bug is impacting CI compilations on JDK 8u25.
This commit is contained in:
Jason Tedor 2015-09-29 16:45:57 +02:00
parent 6bb7b9b567
commit ba0643da2b
1 changed files with 3 additions and 1 deletions

View File

@ -435,7 +435,9 @@ public abstract class AbstractQueryTestCase<QB extends AbstractQueryBuilder<QB>>
* Allows to override boost assertions for queries that don't have the default behaviour * Allows to override boost assertions for queries that don't have the default behaviour
*/ */
protected void assertBoost(QB queryBuilder, Query query) throws IOException { protected void assertBoost(QB queryBuilder, Query query) throws IOException {
assertThat(query.getBoost(), equalTo(queryBuilder.boost())); // workaround https://bugs.openjdk.java.net/browse/JDK-8056984
float boost = queryBuilder.boost();
assertThat(query.getBoost(), equalTo(boost));
} }
/** /**