RFR: 8334714: Class-File API leaves preview [v2]

xxDark duke at openjdk.org
Sat Aug 24 03:08:13 UTC 2024


On Wed, 17 Jul 2024 08:59:07 GMT, Adam Sotona <asotona at openjdk.org> wrote:

>> Class-File API is leaving preview.
>> This is a removal of all `@PreviewFeature` annotations from Class-File API.
>> It also bumps all `@since` tags and removes `jdk.internal.javac.PreviewFeature.Feature.CLASSFILE_API`.
>> 
>> Please review.
>> 
>> Thanks,
>> Adam
>
> Adam Sotona has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
> 
>  - Merge branch 'master' into JDK-8334714-final
>  - bumped @since tag
>  - 8334714: Class-File API leaves preview

I've been trying to work with classfile api, and:
- `AttributesProcessingOption` is unused, does nothing?
- Classfiles with oak format seem to be unparsable. They also cannot be written. (maxStack/maxLocals in Code attribute depend on classfile version). Constants such as `JAVA_1_VERSION` exist in `java.lang.classfile.ClassFile`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19826#issuecomment-2308012254


More information about the core-libs-dev mailing list