Skip to content

8335727: since-checker: Add @since tags to ClassFile::transformClass and CodeBuilder #20041

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ default void buildModuleTo(Path path,
* @param model the class model to transform
* @param transform the transform
* @return the bytes of the new class
*
* @since 24
*/
default byte[] transformClass(ClassModel model, ClassTransform transform) {
return transformClass(model, model.thisClass(), transform);
Expand All @@ -456,6 +458,8 @@ default byte[] transformClass(ClassModel model, ClassTransform transform) {
* @param newClassName new class name
* @param transform the transform
* @return the bytes of the new class
*
* @since 24
*/
default byte[] transformClass(ClassModel model, ClassDesc newClassName, ClassTransform transform) {
return transformClass(model, TemporaryConstantPool.INSTANCE.classEntry(newClassName), transform);
Expand All @@ -479,6 +483,8 @@ default byte[] transformClass(ClassModel model, ClassDesc newClassName, ClassTra
* @param newClassName new class name
* @param transform the transform
* @return the bytes of the new class
*
* @since 24
*/
byte[] transformClass(ClassModel model, ClassEntry newClassName, ClassTransform transform);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,7 @@ default CodeBuilder if_icmpne(Label target) {
* Generate an instruction to branch if reference is not null
* @param target the branch target
* @return this builder
* @since 24
*/
default CodeBuilder ifnonnull(Label target) {
return branch(Opcode.IFNONNULL, target);
Expand All @@ -1649,6 +1650,7 @@ default CodeBuilder ifnonnull(Label target) {
* Generate an instruction to branch if reference is null
* @param target the branch target
* @return this builder
* @since 24
*/
default CodeBuilder ifnull(Label target) {
return branch(Opcode.IFNULL, target);
Expand Down