Skip to content

Disallow literals with null type()#1383

Merged
otaviojava merged 2 commits intojakartaee:mainfrom
njr-11:null-checking-missing-for-type
Feb 24, 2026
Merged

Disallow literals with null type()#1383
otaviojava merged 2 commits intojakartaee:mainfrom
njr-11:null-checking-missing-for-type

Conversation

@njr-11
Copy link
Copy Markdown
Member

@njr-11 njr-11 commented Feb 23, 2026

I had a few of these corrections mixed in under the BooleanExpression/Attribute PR, but that won't necessarily go in, so I have split out the unrelated parts to this PR.

This includes null checking for Literal subtypes that could otherwise be invalidly constructed with a null type().
Also, it adds in a missing @Override that was causing the project not to build locally.
It also removes a .of method from LiteralRecord, which is not the correct place for it.

@njr-11 njr-11 added this to the 1.1 milestone Feb 23, 2026
@otaviojava otaviojava merged commit cfbea90 into jakartaee:main Feb 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants