Document DS component constructor validation and reduce duplication#7086
Merged
chrisrueger merged 1 commit intomasterfrom Feb 10, 2026
Merged
Document DS component constructor validation and reduce duplication#7086chrisrueger merged 1 commit intomasterfrom
chrisrueger merged 1 commit intomasterfrom
Conversation
Copilot
AI
changed the title
[WIP] Update documentation for dsannotations options and components
Add documentation for DS component constructor validation
Feb 4, 2026
Copilot
AI
changed the title
Add documentation for DS component constructor validation
Document DS component constructor validation and reduce duplication
Feb 4, 2026
Contributor
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com> Co-Authored-By: chrisrueger <188422+chrisrueger@users.noreply.github.com>
26c7fca to
d66b268
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the DS component constructor validation introduced in PRs #7082 and #7085. Starting with bnd 7.3.0, component classes must have either a public no-arg constructor or a public
@Activate-annotated constructor. Non-static inner classes now fail validation correctly.Changes
docs/_chapters/200-components.md: Added "Component Class Requirements" section with constructor validation rules, valid/invalid examples, and inner class requirements (104 lines)docs/_instructions/_ext/dsannotations.md: Added brief validation overview linking to detailed section (reduced duplication by 16 lines)docs/_chapters/920-faq.md: Added FAQ entry "Why does bnd require a public no-arg constructor for my DS component?" with concise answer linking to detailed section (reduced duplication by 58 lines)Error Example
Valid Patterns
Total duplication eliminated: 74 lines. Detailed content consolidated in
200-components.mdwith cross-references fromdsannotations.mdand920-faq.md.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.