Daniel, I have added more tests and fixed a few issues http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8156575/webrev.02/
I also created a test case similar to yours. This patch applies on top of: http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8156680/webrev.02/ for JDK-8156680: jdeps implementation refresh Thanks Mandy