Skip to content

Phase 4c: add Java local runner - #47

Merged
SPerekrestova merged 1 commit into
mainfrom
devin/1781090824-phase-4c-java-runner
Jun 10, 2026
Merged

Phase 4c: add Java local runner#47
SPerekrestova merged 1 commit into
mainfrom
devin/1781090824-phase-4c-java-runner

Conversation

@SPerekrestova

@SPerekrestova SPerekrestova commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

Adds java to IMPLEMENTED_LANGUAGES and executes Java submissions through Java source-file mode:

java: {
  extension: "java",
  sourceFileName: "Solution.java",
  probe: { cmd: "java", args: ["-version"] },
  buildArgs: (sourcePath) => ({ cmd: "java", args: [sourcePath] })
}

The fixed Solution.java source name supports standard LeetCode-style public class Solution snippets while keeping the same isolated temp HOME, timeout, clean-env, sandbox wrapping, and stdout/stderr capture path used by the Python/Go runners.

Updates runner tool copy and runtime-gated unit/e2e coverage so Java executes when a JDK/JRE is present and cleanly reports LANGUAGE_RUNTIME_NOT_FOUND otherwise. Verified locally with npm run build, npm run test:types, npx prettier --check ., focused runner/integration/e2e tests, npm test, npm run test:e2e, and npm run test:all.

Link to Devin session: https://app.devin.ai/sessions/3e6f3e63f6e54852b9bf6da1c792774f
Requested by: @SPerekrestova

@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bdde20b2-6c7d-4aa0-b172-e5069b4360d9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch devin/1781090824-phase-4c-java-runner

Comment @coderabbitai help to get the list of available commands and usage tips.

@SPerekrestova SPerekrestova left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


Generated by Claude Code

@devin-ai-integration
devin-ai-integration Bot changed the base branch from devin/1781089328-phase-4b-go-runner to main June 10, 2026 11:37
@SPerekrestova
SPerekrestova merged commit 16b1805 into main Jun 10, 2026
2 checks passed
@SPerekrestova
SPerekrestova deleted the devin/1781090824-phase-4c-java-runner branch June 10, 2026 11:44
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