Skip to content

fix: java 8 compatibility for readAllBytes and build on pull requests - #61

Merged
sunwu51 merged 2 commits into
masterfrom
opencode/outer-watch-nested-lambda
Aug 5, 2026
Merged

fix: java 8 compatibility for readAllBytes and build on pull requests#61
sunwu51 merged 2 commits into
masterfrom
opencode/outer-watch-nested-lambda

Conversation

@sunwu51

@sunwu51 sunwu51 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

InputStream.readAllBytes is a Java 9+ API but the project targets Java 8, which broke the CI build jar. Replace it with a Java 8 compatible helper w.util.IOUtils.readAllBytes in ChangeResultTransformer, OuterWatchTransformer and WCompiler. Also trigger the build workflow on pull_request (release job still only runs on push/workflow_dispatch) so jar build failures are caught before merge, and update the change result no-match test to the surfaced "No methods match" message.

Agent: opencode
Model: deepseek/deepseek-v4-flash

sunwu51 added 2 commits August 6, 2026 00:26
InputStream.readAllBytes is a Java 9+ API but the project targets Java 8,
which broke the CI build jar. Replace it with a Java 8 compatible helper
w.util.IOUtils.readAllBytes in ChangeResultTransformer, OuterWatchTransformer
and WCompiler. Also trigger the build workflow on pull_request (release job
still only runs on push/workflow_dispatch) so jar build failures are caught
before merge, and update the change result no-match test to the surfaced
"No methods match" message.

Agent: opencode
Model: deepseek/deepseek-v4-flash
JDK 8 javac names an inner nested lambda lambda$null$N (no enclosing
source-method context), while JDK 17 uses lambda$<method>$N, which broke
two OuterWatchTest assertions on the CI JDK 8 build. Count all collected
lambda methods and accept any readable [lambda$N] outerDisplay.

Agent: opencode
Model: deepseek/deepseek-v4-flash
@sunwu51
sunwu51 merged commit cd22885 into master Aug 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant