Java 27 and 26: runnable demos and captured output for every JEP, plus version lanes

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
This commit is contained in:
2026-09-21 15:08:50 +00:00
committed by Claude
co-authored by Claude Sonnet 5
commit f59c1de96d
152 changed files with 5049 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# New public API in 27, each exercised once (found by diffing javap dumps, see 51-api-diff-26-to-27.txt)
Math.acosh(2) = 1.316958
Math.asinh(1) = 0.881374
Math.atanh(.5) = 0.549306
CHECK ok : acosh inverts cosh
"naïve café".length() = 10, encodedLength(UTF_8) = 12
CHECK ok : encodedLength matches getBytes().length without allocating the array
BigDecimal(27).rootn(3) = 3
CHECK ok : rootn(3) of 27 is 3
KeyStore.getCreationInstant("aes-key") returns an Instant: true
CHECK ok : KeyStore.getCreationInstant returns the entry's creation time as a java.time.Instant
CHECK ok : Set.ofLazy(Set, Predicate) exists (preview API)