SOLR-5417: make forbidden API's happy

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1545128 13f79535-47bb-0310-9956-ffa450edef68
SOLR-4711: enable these tests on java 8

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1545131 13f79535-47bb-0310-9956-ffa450edef68