8000 [Records] Missing @Override annotation on component accessors not complained about by ECJ · Issue #3957 · eclipse-jdt/eclipse.jdt.core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Records] Missing @Override annotation on component accessors not complained about by ECJ #3957

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

Closed
srikanth-sankaran opened this issue Apr 28, 2025 · 0 comments · Fixed by #3993
Assignees
Milestone

Comments

@srikanth-sankaran
Copy link
Contributor

Turn on the preference to give an error for missing override annotations and then compile this program:


record R(int... x) {

	public final int hashCode() {
		return 42;
	}

	public int[] x() {
		return this.x;
	}

}

You get an error for hashCode but not for x

@srikanth-sankaran srikanth-sankaran self-assigned this Apr 28, 2025
@srikanth-sankaran srikanth-sankaran added this to the 4.36 M3 milestone Apr 28, 2025
srikanth-sankaran added a commit to srikanth-sankaran/eclipse.jdt.core that referenced this issue May 9, 2025
srikanth-sankaran added a commit to srikanth-sankaran/eclipse.jdt.core that referenced this issue May 9, 2025
complained about by ECJ

* Fixes eclipse-jdt#3957

[Records] ECJ compiles arity mismatched canonical constructor

* Fixes eclipse-jdt#3663
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 a pull request may close this issue.

1 participant
0