RFR: JDK-8312418: Add Elements.getEnumConstantBody [v3]
Joe Darcy
darcy at openjdk.org
Wed Aug 23 21:28:24 UTC 2023
On Wed, 23 Aug 2023 21:24:40 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>> Trivial implementation to get feedback on the proposed API.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
>
> Change policy of default method.
To address some concerns raised off-list by @jonathan-gibbons, I modified the semantics of the default method to always throw some exception, either an IllegalArgumentException or an UnsupportedOperationException. This is (slightly) a more precise approximation to the "real" behavior of the method than always throwing UnsupportedOperationException.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14939#issuecomment-1690662049
More information about the compiler-dev
mailing list