[External] : How build an abstract method?
Chen Liang
chen.l.liang at oracle.com
Thu Jul 10 22:46:19 UTC 2025
An abstract method does not have code. You shouldn't be calling withCode, which always generates a Code attribute, which is exactly what you don't want. If you are calling from ClassBuilder, call withMethod instead of withMethodBody.
Chen
________________________________
From: Mark Roberts <markro at cs.washington.edu>
Sent: Thursday, July 10, 2025 5:32 PM
To: classfile-api-dev at openjdk.org <classfile-api-dev at openjdk.org>
Cc: Chen Liang <chen.l.liang at oracle.com>
Subject: [External] : How build an abstract method?
MethodBuilder.withCode won’t allow 0 length body. Don’t see how to create an abstract method and define its parameters.
Thank you,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20250710/77e16b38/attachment.htm>
More information about the classfile-api-dev
mailing list