--- old/test/jdk/java/lang/invoke/modules/Unnamed.java 2019-07-01 19:28:04.000000000 -0700 +++ new/test/jdk/java/lang/invoke/modules/Unnamed.java 2019-07-01 19:28:04.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2019, 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 @@ -21,4 +21,11 @@ * questions. */ -public class Unnamed { } +import java.lang.invoke.MethodHandles; +import java.lang.invoke.MethodHandles.Lookup; + +public class Unnamed { + public static Lookup lookup() { + return MethodHandles.lookup(); + } +}