diff -r 2c33418a6d57 -r 83b611b88ac8 jdk/test/java/lang/instrument/RedefineModuleAgent.java --- a/jdk/test/java/lang/instrument/RedefineModuleAgent.java Thu Apr 06 17:01:03 2017 +0000 +++ b/jdk/test/java/lang/instrument/RedefineModuleAgent.java Fri Apr 07 08:05:54 2017 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,6 @@ */ import java.lang.instrument.Instrumentation; -import java.lang.reflect.Module; import java.util.List; import java.util.Map; import java.util.Set; @@ -47,4 +46,8 @@ Map, List>> extraProvides) { inst.redefineModule(module, extraReads, extraExports, extraOpens, extraUses, extraProvides); } + + static boolean isModifiableModule(Module module) { + return inst.isModifiableModule(module); + } }