On 09/05/2018 08:30, Nicolai Parlog wrote:
Hi Alan,
so just to get this straight, there should be a compile error, yes? I'm
sure there was one while Java 9 was in EA and now there isn't anymore,
which bugs the hell out of me because my book claims, there's going to
be one. :(
There seems to a subtle bug in javac where the cycle detection depends
on the ordering of the `requires` directives. I've created JDK-8202832
[1] to track this. The bug duplicates with JDK 9 (and JDK 10 and current
JDK 11 EA builds). You may be right that it failed correctly with older
JDK 9 EA builds but I haven't checked yet if that is the case.
-Alan
[1] https://bugs.openjdk.java.net/browse/JDK-8202832