Repository navigation
Get ABCL's REPL running on JDK 25: ZipFile state and File natives - #23
Merged
Merged
Conversation
ABCL now boots on JDK 25 and runs its REPL, but two JDK 8 leftovers stopped it right after low-level initialization: - java.util.zip.ZipFile, implemented in Lisp, kept its state in JDK 8's name and jzfile fields. The class takes its fields from JDK 25's ZipFile.class, which has neither, so opening any jar directly failed. Keep the path and open zip in a weak side table instead, as url.lisp already does for JarFile, add the ZipFile(String) constructor, and load ZipEntry before getEntry instantiates it. - UnixFileSystem's getLastModifiedTime0, getLength0 and list0 were only defined under their JDK 8 names. Define the JDK 25 names, returning 0 for a missing file as the JDK does, and have the old names delegate. New aaa/zipfile.java and aaa/filestat.java cover both. docs/ABCL.md and the README now describe the JDK 25 setup and current status. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 20, 2026
Closed
atgreen
added a commit
that referenced
this pull request
Oct 20, 2026
PRs #19-#21 and #23-#27 added aaa/jitwake, monitorwake, waitwake, zipfile, filestat, lazyloader, reflstatic, siblingloaders and childfirst. check-regression.sh only fails on lost passes and new failures, so a new test is not enforced until it is in the baseline. Core suites now 528 expected passes, up from 501; no test changed state. Generated with make check-regression at 2e5e6db; the Running lines keep the existing baseline's paths. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-tested ABCL 1.9.2 (issue #7) on current master with JDK 25. The REPL blocker in
docs/ABCL.md(hang on stdin, strayGoon EOF) no longer reproduces, but two JDK 8 leftovers stopped ABCL right after low-level initialization. With both fixed, ABCL boots, prints its prompt and evaluates piped-in forms correctly: bignumdefun,defclass/defmethod,handler-case,format,compile, and Java interop (java.version→"25").java.util.zip.ZipFile(src/zip.lisp) is implemented in Lisp but kept its state in JDK 8'snameandjzfilefields. The class takes its fields from JDK 25'sZipFile.class, which has neither (it hasfilePath,res, …), so any program that opens a jar directly died in the constructor:The path and open zip now live in a weak side table, as
src/url.lispalready does forJarFile. Writing a test also turned up a missingZipFile(String)constructor andgetEntryinstantiatingZipEntrybefore loading it, both fixed here.UnixFileSystemnatives (src/native/system.lisp):getLastModifiedTime0,getLength0andlist0were only defined under their JDK 8 names, soFile.lastModified(),length()andlist()were undefined on JDK 25. The JDK 25 names are defined now, returning 0 for a missing file as the JDK does, and the old names delegate, following the existingcheckAccessbridge.Tests: new
aaa/zipfile.java(opens and readstestsuite/test.jar) andaaa/filestat.java(length, mtime and listing, plus a missing file). Both printOKon the reference JVM and on OpenLDK with this change, and crash on master.waitwake,monitorwakeandjitwakestill pass. I couldn't runmake check-regressionlocally (no DejaGnu here), so CI's gate is the full check.Docs:
docs/ABCL.mdnow has JDK 25 setup and current status, a timing table (about 3.5 min to the first prompt, about 4 min for the firstcompile, nearly all first-use JIT), and the remaining gaps: unimplemented file-system natives such ascreateDirectory0/rename0, and the stock threadedMainnot yet re-tested. The README entry is updated to match, andlib/abcl/abcl.jaris gitignored.🤖 Generated with Claude Code