JEP 401 EA report: runtime warning (Circularity error)
Lois Foltan
lois.foltan at oracle.com
Thu Oct 30 14:56:32 UTC 2025
Hello,
Thanks for the test case, we will take a look. I have created https://bugs.openjdk.org/browse/JDK-8370951 for investigation and tracking purposes.
Regards,
Lois
From: valhalla-dev <valhalla-dev-retn at openjdk.org> on behalf of Grégoire Neuville <gregoire.neuville at gmail.com>
Date: Thursday, October 30, 2025 at 7:11 AM
To: valhalla-dev at openjdk.org <valhalla-dev at openjdk.org>
Subject: JEP 401 EA report: runtime warning (Circularity error)
Hello,
I get the following warning :
[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
while trying to *run* this code (it compiles fine) :
value record Trampo<A>(A a, SubTr<?, A> sub) {
value record SubTr<A, B>(Trampo<A> stack, F<A, Trampo<B>> cont) {}
}
void main() {
final var tr = new Trampo<>(1, new Trampo.SubTr<>(new Trampo<>(0, null), i -> new Trampo<>(i + 1, null)));
IO.println("TRAMPO => %s".formatted(tr));
}
This is on java :
openjdk version "26-jep401ea2" 2026-03-17
OpenJDK Runtime Environment (build 26-jep401ea2+1-1)
OpenJDK 64-Bit Server VM (build 26-jep401ea2+1-1, mixed mode, sharing)
Hope it will help,
Grégoire Neuville
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/valhalla-dev/attachments/20251030/f29780d9/attachment-0001.htm>
More information about the valhalla-dev
mailing list