<div dir="ltr"><div>Hello,</div><div><br></div><div>I get the following warning :</div><div><br></div><div>[0,123s][warning][class,preload] Preloading of class Main$Trampo during loading of class Main$Trampo$SubTr (cause: field type in LoadableDescriptors attribute) failed : java/lang/ClassCircularityError</div><div><br></div><div>while trying to *run* this code (it compiles fine) :</div><div><br></div><div>value record Trampo<A>(A a, SubTr<?, A> sub) {<br><br>    value record SubTr<A, B>(Trampo<A> stack, F<A, Trampo<B>> cont) {}<br>}<br></div><div><br></div><div>void main() {<br>    final var tr = new Trampo<>(1, new Trampo.SubTr<>(new Trampo<>(0, null), i -> new Trampo<>(i + 1, null)));<br><br>    IO.println("TRAMPO => %s".formatted(tr));<br>}<br></div><div><br></div><div>This is on java :</div><div><br></div><div>openjdk version "26-jep401ea2" 2026-03-17<br>OpenJDK Runtime Environment (build 26-jep401ea2+1-1)<br>OpenJDK 64-Bit Server VM (build 26-jep401ea2+1-1, mixed mode, sharing)</div><div><br></div><div>Hope it will help,</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Grégoire Neuville</div></div></div>