Re: RFR: 8341548: More concise use of classfile API [v3]

2024-10-08 Thread Chen Liang
On Mon, 7 Oct 2024 01:25:31 GMT, Shaojin Wen 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'

Re: RFR: 8341548: More concise use of classfile API [v3]

2024-10-06 Thread Shaojin Wen
> 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(

Re: RFR: 8341548: More concise use of classfile API [v2]

2024-10-04 Thread Shaojin Wen
> 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(

Re: RFR: 8341548: More concise use of classfile API

2024-10-04 Thread ExE Boss
On Fri, 4 Oct 2024 12:05:02 GMT, Shaojin Wen 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.

Re: RFR: 8341548: More concise use of classfile API

2024-10-04 Thread Shaojin Wen
On Fri, 4 Oct 2024 12:05:02 GMT, Shaojin Wen 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.

RFR: 8341548: More concise use of classfile API

2024-10-04 Thread Shaojin Wen
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)' --