Thanks to visit codestin.com
Credit goes to github.com

Skip to content

HHH-19372 HHH-19369 Test and fix CCE and IAE with access optimizer and inheritance #10192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 22, 2025

Conversation

beikov
Copy link
Member

@beikov beikov commented May 21, 2025


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-19369
https://hibernate.atlassian.net/browse/HHH-19372

@beikov beikov added the 6.6 label May 21, 2025

private String field;

public Long getId() {

Check notice

Code scanning / CodeQL

Missing Override annotation Note test

This method overrides
Ancestor.getId
; it is advisable to add an Override annotation.
return id;
}

public void setId(Long id) {

Check notice

Code scanning / CodeQL

Missing Override annotation Note test

This method overrides
Ancestor.setId
; it is advisable to add an Override annotation.
@Entity
public class ConcreteEntity extends SuperclassEntity {
@Id
protected long id;

Check warning

Code scanning / CodeQL

Field masks field in super class Warning test

This field shadows another field called
id
in a superclass.
protected long id;
protected String bname;

public long getId() {

Check notice

Code scanning / CodeQL

Missing Override annotation Note test

This method overrides
SuperclassEntity.getId
; it is advisable to add an Override annotation.
return id;
}

public void setId(long id) {

Check notice

Code scanning / CodeQL

Missing Override annotation Note test

This method overrides
SuperclassEntity.setId
; it is advisable to add an Override annotation.
@beikov beikov merged commit e7bcbb4 into hibernate:6.6 May 22, 2025
32 checks passed
@beikov beikov deleted the HHH-19369-6.6 branch May 22, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants