Skip to content

Conversation

@jvandort
Copy link

@jvandort jvandort commented Feb 4, 2025

Add the class version to JavaClass so rules can verify the class version

Fixes #423

Add the class version to JavaClass so rules can verify the class version
@jvandort
Copy link
Author

jvandort commented Feb 5, 2025

I followed the guidelines in the original issue, but was unsure about testing.

How would you advise testing this?

@hankem
Copy link
Member

hankem commented Feb 8, 2025

One option could be to commit compiled classes in src/test/resources to the repository.

@jvandort
Copy link
Author

Do you have an example test method/class I should follow the style/pattern of?

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.

Rule to restrict to specific bytecode java version

2 participants