This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add support for Java 16 records #829
Labels
Comments
liach
added a commit
to liachmodded/javapoet
that referenced
this issue
May 13, 2021
Fixes square#829 Signed-off-by: liach <[email protected]>
liach
added a commit
to liachmodded/javapoet
that referenced
this issue
May 13, 2021
Fixes square#829 Signed-off-by: liach <[email protected]>
Open
1 task
I am taking a crack at a PR that would add record support. However, after forking and doing a fresh build/test, I'm seeing two tests fail in IntelliJ (when running through the IDE, not in Maven). ClassNameTest::classNameFromTypeElementDoesntUseGetKind fails:
and ParameterSpecTest::parameterVariableElement fails:
Is this expected? |
@rbair23 It looks like the latter can be fixed by replacing .isEqualTo("java.lang.String arg0"); with .isEqualTo("java.lang.String bar"); It's not clear to me yet what causes the other one. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Java 16 has added support for records under JEP 395, of the form.
It would be great to support these in JavaPoet, as among other things, they significantly reduce boilerplate.
The text was updated successfully, but these errors were encountered: