A DESCRIPTION OF THE PROBLEM :
It would be useful if the `javap` tool would output the Java version a class has been compiled for, e.g. when major version is 60 and minor version is 0, it would show "Java 16". And it might also useful to indicate whether the class depends on preview features (i.e. major version >= 56 and minor version is 65535).
That information could either always be shown as part of the output, or at least when the `-verbose` flag is used.
Currently it is difficult to tell for which target Java version a class was compiled without knowing the mapping by heart or looking it up.
It would be useful if the `javap` tool would output the Java version a class has been compiled for, e.g. when major version is 60 and minor version is 0, it would show "Java 16". And it might also useful to indicate whether the class depends on preview features (i.e. major version >= 56 and minor version is 65535).
That information could either always be shown as part of the output, or at least when the `-verbose` flag is used.
Currently it is difficult to tell for which target Java version a class was compiled without knowing the mapping by heart or looking it up.