<div dir="ltr">Hi!<br>I am investigating a new version of 

jep494   <div>(<a href="https://cr.openjdk.org/~gbierman/jep494/jep494-20241024/specs/module-import-declarations-jls.html#jls-7.7.1">https://cr.openjdk.org/~gbierman/jep494/jep494-20241024/specs/module-import-declarations-jls.html#jls-7.7.1</a>)</div>This chapter allows to use `transitive` in user's module-info.java, but<div>after compilation (with --enable-preview) and trying to use this file I've got the error:<br>`The requires entry for java.base has ACC_TRANSITIVE set`.<br><br>it looks like the problem is here</div><div><a href="https://github.com/openjdk/jdk/blob/a7915bb2e1b822b6d9cbeb220765e8c821c71d0b/src/java.base/share/classes/jdk/internal/module/ModuleInfo.java#L420">https://github.com/openjdk/jdk/blob/a7915bb2e1b822b6d9cbeb220765e8c821c71d0b/src/java.base/share/classes/jdk/internal/module/ModuleInfo.java#L420</a><br>It requires that classfile must be preview, but it's minor version is not equal to 65535 (flag  --enable-preview  was used), because it doesn't use anything from preview. </div><div><br></div><div>Could you help me, is this behaviour expected? and how could users use 'transitive'  with 'java.base' in their 'module-info.java'?</div><div><br></div></div>