8182566: Including missing test update for JDK-8163989
authordarcy
Mon, 19 Jun 2017 17:13:42 -0700
changeset 45688 abb7c4afc7a8
parent 45687 07463ccee73b
child 45689 994036e74ab8
child 45743 51bca2b0d672
8182566: Including missing test update for JDK-8163989 Reviewed-by: jjg
langtools/test/tools/javac/file/MultiReleaseJar/MutliReleaseModuleInfoTest.java
--- a/langtools/test/tools/javac/file/MultiReleaseJar/MutliReleaseModuleInfoTest.java	Mon Jun 19 15:06:01 2017 -0700
+++ b/langtools/test/tools/javac/file/MultiReleaseJar/MutliReleaseModuleInfoTest.java	Mon Jun 19 17:13:42 2017 -0700
@@ -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
@@ -132,7 +132,7 @@
             }
             boolean foundjd = false;
             for (RequiresDirective rd : ElementFilter.requiresIn(sm.getDirectives())) {
-                foundjd |= rd.getDependency().getSimpleName().contentEquals("java.desktop");
+                foundjd |= rd.getDependency().getQualifiedName().contentEquals("java.desktop");
             }
             if (!foundjd) {
                 throw new AssertionError("Missing dependency on java desktop module!");