1 /* |
1 /* |
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
512 } |
512 } |
513 classpaths.addAll(PlatformClassPath.getArchives()); |
513 classpaths.addAll(PlatformClassPath.getArchives()); |
514 |
514 |
515 // add all classpath archives to the source locations for reporting |
515 // add all classpath archives to the source locations for reporting |
516 sourceLocations.addAll(classpaths); |
516 sourceLocations.addAll(classpaths); |
|
517 |
|
518 // warn about Multi-Release jars |
|
519 for (Archive a : sourceLocations) { |
|
520 if (a.reader().isMultiReleaseJar()) { |
|
521 warning("warn.mrjar.usejdk9", a.getPathName()); |
|
522 } |
|
523 } |
517 |
524 |
518 // Work queue of names of classfiles to be searched. |
525 // Work queue of names of classfiles to be searched. |
519 // Entries will be unique, and for classes that do not yet have |
526 // Entries will be unique, and for classes that do not yet have |
520 // dependencies in the results map. |
527 // dependencies in the results map. |
521 Deque<String> deque = new LinkedList<>(); |
528 Deque<String> deque = new LinkedList<>(); |