Open
Conversation
analysis of code that's compiled with '-source 11' should work with
only one small caveat about dynamic constants. analysis of code
that's compiled with '-source 23' should work so long as it doesn't
use records or sealed classes.
* update to asm 9.7, which supports low-level parsing of '-target 23'
classfiles (opcodes)
* only update to ASM7 API, which corresponds to bytecode features
available in '-target 11' classfiles. (see backward-compatibility
section of ASM's documentation for background.)
* ASM6: module declarations (added in Java 9) are irrelevant for
OpenAPI generation
* ASM7:
* nests (added in Java 11) are irrelevant for OpenAPI generation
* dynamic constants (added in Java 11) may be relevant for OpenAPI
generation. The code in
ProjectMethodVisitor.createLdcInstruction() may handle them
already, but a test would be required to know for sure.
* ASM8: records (Java 14) are not supported; the analyzer will very
likely fail if it encounters such a construct in code being
analyzed. adding support for records would be considerable work.
* ASM9: sealed classes (Java 15) are not supported; the analyzer
will very likely fail if it encounters such a construct in code
being analyzed. sealed classes aren't relevant for OpenAPI
generation, so once ASM8 / records are tackled, ASM9 should be
trivial.
* code that used old-style reflection to access the signatures &
modifiers of fields and methods is updated to use method handles
instead.
this is based in large part on commit 88da5d9 from the finrod2002
fork.
Co-authored-by: Luca <luca.santocono@xelion.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.