Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide the dependency reason to required dependencies too #55

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

Matyrobbrt
Copy link
Member

No description provided.

@Matyrobbrt Matyrobbrt merged commit f61b1e1 into neoforged:main Dec 16, 2023
1 check passed
@Matyrobbrt Matyrobbrt deleted the dep-reason branch December 16, 2023 23:53
shartte added a commit that referenced this pull request Dec 22, 2024
Implement last modification time and content length in URLConnection for
SJH modular class loaders. Enables support for javacpp.

javacpp tries to extract the native DLLs it is wrapping into a cache
directory. In normal operation, it retrieves the lastModifiedDate+size
from a JarURLConnection to handle conflicts. When using javacpp in
Neoforge, this fails. javacpp cannot use its JarUrlConnection special
case and will fall back to using the generic URLConnection methods
`getContentLength` and `getLastModified`, which SJH does not implement.
That leads to crashes (since javacpp can no longer detect if the DLL it
is trying to extract is different from the one already on disk).
Implementing these two methods in SJH fixes the issue.

Fixes bytedeco/javacpp#697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants