Compile Time Evaluation: constexpr for Java

Suminda Sirinath Salpitikorala Dharmasena sirinath1978m at gmail.com
Tue Jan 12 06:27:03 UTC 2021


Hello,

Since the const keyword is not used in Java can this be operposed for
compile time evaluation? Classes, interfaces, methods, fields marked with
const will only be available at compile time and would be fully evaluated
and replaced with the results in runtime bytecode.

Suminda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20210112/b21f405e/attachment.htm>


More information about the compiler-dev mailing list