eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Generate default no-arg constructors directly as bindings rather than as AST and then bindings

Open
#3,902 0 comments 0 reactions 1 assignee Claimed by @srikanth-sankaran View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

See org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.createDefaultConstructor(boolean, boolean) and friends.

It should be investigated whether this could be directly generated as a `SyntheticMethodBinding` - while this is working code, it simply duplicates strategy and tempts further such creation and persistence of needlessly disparate strategies for doing the same thing. It would be good to unify the approach to synthesis of class body declarations not coded expressly in the source

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.