Please review this small test fix. It adds an fclose in an early return case to function nsk_jvmti_aod_redefineClass . Bug/webrev : https://bugs.openjdk.java.net/browse/JDK-8214297 http://cr.openjdk.java.net/~mbaesken/webrevs/8214297.0/ Thanks ,Matthias