Integrated: 8341548: More concise use of classfile API

Shaojin Wen swen at openjdk.org
Tue Oct 8 20:38:03 UTC 2024


On Fri, 4 Oct 2024 12:05:02 GMT, Shaojin Wen <swen at openjdk.org> wrote:

> java.base should provide best practices for Class File API
> 
> 1. Use fluent coding style
> 2. Use aconst_null instead of oadConstant(null)
> 3. use astore intead of 'storeLocal(REFERENCE'
> 4. use aload instead of 'loadLocal(REFERENCE'
> 5. 'lload/lstore' instead of 'loadLocal(LONG)/storeLocal(LONG)'

This pull request has now been integrated.

Changeset: 62acc9c1
Author:    Shaojin Wen <swen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/62acc9c174f23acd2807c8214ffc28d73799da16
Stats:     348 lines in 5 files changed: 6 ins; 25 del; 317 mod

8341548: More concise use of classfile API

Reviewed-by: liach

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

PR: https://git.openjdk.org/jdk/pull/21355


More information about the core-libs-dev mailing list