Skip to content

Conversation

@laeubi
Copy link

@laeubi laeubi commented Nov 2, 2025

The Felix code mentions a R8 feature (satisfying condition) as a TODO, but as R8 is out already this seems no longer needed.

Changes

  • ReferenceMetadata.java: Replaced TODO comment with JavaDoc referencing the R8 specification
  • XmlHandler.java: Enhanced comments explaining the implicit satisfying condition logic
  • README.md: Added comprehensive documentation section covering:
    • Automatic satisfying condition reference injection when framework provides true condition service
    • Customization via osgi.ds.satisfying.condition.target property
    • XML configuration examples
    • Note about preliminary R8 specification status
  • changelog.txt: Documented as improvement in version 2.2.15

@laeubi laeubi force-pushed the fixup_r8_compliance branch from 6061636 to 6c32c2c Compare November 2, 2025 10:56
@stbischof stbischof merged commit 1c0619a into apache:master Nov 2, 2025
3 checks passed
@laeubi
Copy link
Author

laeubi commented Nov 2, 2025

Thanks @stbischof

* The reference name for the implicit satisfying condition as defined in the
* OSGi R8 Declarative Services specification (see https://github.com/osgi/osgi/pull/875).
* This reference is automatically added to components when a true condition service is available.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point of this comment wasn't to add javadoc later to this internal class. It was to remind us to use the actual spec'ed constant from the released APIs
https://github.com/osgi/osgi/blob/eb08fcac898f50aec1a1d2847cae6ffccd5a7385/org.osgi.service.component/src/org/osgi/service/component/ComponentConstants.java#L161

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

3 participants