Skip to content

Conversation

@gavinking
Copy link
Member

@gavinking gavinking commented Sep 6, 2025

[Please describe here what your change is about]


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19757

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Sep 6, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [9a6f5f4, aa4b98b, d1b3430, 2979b27, feec8ea, 8215bb1]

› This message was automatically generated.

@gavinking gavinking force-pushed the simplify-collectionjt branch from 236a9ca to 9a6f5f4 Compare September 6, 2025 08:48
@gavinking gavinking force-pushed the simplify-collectionjt branch from 790ee6a to f9b4304 Compare September 6, 2025 12:42
@gavinking gavinking force-pushed the simplify-collectionjt branch from f9b4304 to feec8ea Compare September 6, 2025 13:01
Function<TypeConfiguration, MutabilityPlan<?>> explicitMutabilityPlanAccess,
JdbcTypeIndicators stdIndicators,
Selectable selectable,
@SuppressWarnings("unused") JavaType<T> reflectedJtd,

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'reflectedJtd' is never used.

if ( parameters.containsKey( TYPE ) ) {
int jdbcTypeCode = Integer.parseInt( (String) parameters.get( TYPE ) );
final int jdbcTypeCode = Integer.parseInt( (String) parameters.get( TYPE ) );

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note test

Potential uncaught 'java.lang.NumberFormatException'.
@gavinking gavinking changed the title simplification to CollectionJavaType HHH-19757 fix registry APIs + simplification to CollectionJavaType Sep 6, 2025
@gavinking gavinking force-pushed the simplify-collectionjt branch from d24e4f6 to 7ef0dbd Compare September 6, 2025 16:59
Many operations of TypeConfiguration, BasicTypeRegistry, JavaTypeRegistry
were unsafe due to the use of an unbound type parameter in the return type.
Note that this is in principle a breaking change to these SPIs. However,
I've done it in a way that minimizes the impact on reasonable code.
@gavinking gavinking force-pushed the simplify-collectionjt branch from 7ef0dbd to 576f078 Compare September 6, 2025 17:01
@gavinking gavinking marked this pull request as ready for review September 6, 2025 17:39
@gavinking gavinking merged commit bbfba45 into hibernate:main Sep 6, 2025
24 of 26 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.

1 participant