1.1 --- a/src/share/classes/com/sun/tools/jdeps/JdepsTask.java Mon May 01 10:55:28 2017 -0700 1.2 +++ b/src/share/classes/com/sun/tools/jdeps/JdepsTask.java Thu Apr 27 16:18:18 2017 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -515,6 +515,13 @@ 1.11 // add all classpath archives to the source locations for reporting 1.12 sourceLocations.addAll(classpaths); 1.13 1.14 + // warn about Multi-Release jars 1.15 + for (Archive a : sourceLocations) { 1.16 + if (a.reader().isMultiReleaseJar()) { 1.17 + warning("warn.mrjar.usejdk9", a.getPathName()); 1.18 + } 1.19 + } 1.20 + 1.21 // Work queue of names of classfiles to be searched. 1.22 // Entries will be unique, and for classes that do not yet have 1.23 // dependencies in the results map.