Skip to content

Detect Java class files by content - #17

Merged
andrew merged 1 commit into
mainfrom
feat/java-class
Oct 21, 2026
Merged

andrew merged 1 commit into
mainfrom
feat/java-class

Conversation

@andrew

@andrew andrew commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Recognize Java class files as java-class with MIME type application/java-vm, allowing callers to distinguish them from unknown binaries without relying on filenames.

Check the major version and nonzero constant-pool count in the ten-byte header while preserving Mach-O detection for the shared CA FE BA BE signature. Include a compiled Java fixture, truncated-header and signature-overlap cases, and format documentation.

Copilot AI balanced review requested due to automatic review settings October 21, 2026 10:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew
andrew merged commit 11ac723 into main Oct 21, 2026
7 checks passed
@andrew
andrew deleted the feat/java-class branch October 21, 2026 10:37
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.

2 participants