Skip forbiddenapis on JDK17+

Environment

None
Fixed

Assignee

Yoann Rodière

Reporter

Yoann Rodière