HSEARCH-1721 JDK9 compatibility

https://hibernate.atlassian.net/browse/HSEARCH-1721