⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Do not try to translate classes in META-INF/versions#169

Open
kohlschuetter wants to merge 1 commit intoluontola:masterfrom
kohlschutter:ck/FilteringFileVisitor
Open

Do not try to translate classes in META-INF/versions#169
kohlschuetter wants to merge 1 commit intoluontola:masterfrom
kohlschutter:ck/FilteringFileVisitor

Conversation

@kohlschuetter
Copy link

In a multirelease-jar environment, there could be classes under META-INF/versions, which retrolambda would try to translate.

As per definition, these are Java classes newer than Java 1.8, so they shouldn't be processed at all, especially since it is expected that there is at least some version (hopefully 1.8 or older) of that class in the path that is not prefixed by META-INF/versions.

Extend FilteringFileVisitor to never visit /META-INF/versions, and modify FilteringFileVisitor so it's usable in all cases, even when no other filtering is required.

In a multirelease-jar environment, there could be classes under
META-INF/versions, which retrolambda would try to translate.

As per definition, these are Java classes newer than Java 1.8, so they
shouldn't be processed at all, especially since it is expected that
there is at least some version (hopefully 1.8 or older) of that class in
the path that is not prefixed by META-INF/versions.

Extend FilteringFileVisitor to never visit /META-INF/versions, and
modify FilteringFileVisitor so it's usable in all cases, even when no
other filtering is required.
@kohlschuetter kohlschuetter force-pushed the ck/FilteringFileVisitor branch from 328d578 to 2abb948 Compare September 25, 2023 18:38
@luontola
Copy link
Owner

Requires a test case to reproduce whatever was the issue.

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