RFR: JDK-8289249: Add methods to Elements for record constructors

Joe Darcy darcy at openjdk.org
Fri Aug 5 22:47:06 UTC 2022


On Thu, 4 Aug 2022 16:13:04 GMT, Vicente Romero <vromero at openjdk.org> wrote:

>> Please review the addition of two predicates to better support records in the javax.lang.model API.
>> 
>> Please also review the CSR https://bugs.openjdk.org/browse/JDK-8291594
>
> test/langtools/tools/javac/processing/model/util/elements/TestRecordPredicates.java line 110:
> 
>> 108:     }
>> 109: 
>> 110:     @ExpectedPredicates(isCompact=true, isCanonical=true)
> 
> side: this is uncovering a bug in the compiler, isCanonical should be false in this case. I have filed JDK-8291914 to address this issue

Part of the regression tests for  JDK-8291914 already written then :-)

-------------

PR: https://git.openjdk.org/jdk/pull/9694


More information about the compiler-dev mailing list