Skip to content

stabilize accept replies#432

Merged
milyin merged 10 commits intoeclipse-zenoh:mainfrom
milyin-zenoh-zbobr:zbobr_fix-38-fix-issue-431-tls-test
Mar 12, 2026
Merged

stabilize accept replies#432
milyin merged 10 commits intoeclipse-zenoh:mainfrom
milyin-zenoh-zbobr:zbobr_fix-38-fix-issue-431-tls-test

Conversation

@milyin
Copy link
Contributor

@milyin milyin commented Mar 9, 2026

fixes #431
implemented in milyin-zenoh-zbobr/tasks#38

milyin and others added 2 commits March 9, 2026 13:19
Add stable accept_replies API to zenoh-java, matching the stabilized
ReplyKeyExpr type from upstream zenoh PR #2443.

Changes:
- Create ReplyKeyExpr enum (MATCHING_QUERY, ANY) in Kotlin
- Add acceptReplies field to GetOptions and QuerierOptions
- Pass acceptReplies ordinal through JNI bridge (JNISession.kt)
- Add decode_reply_key_expr in Rust utils.rs
- Wire accept_replies into both getViaJNI and declareQuerierViaJNI

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Mar 9, 2026

PR missing one of the required labels: {'documentation', 'bug', 'new feature', 'internal', 'ci', 'enhancement', 'dependencies', 'breaking-change', 'api-sync'}

@milyin milyin added the enhancement Existing things could work better label Mar 9, 2026
@diogomatsubara diogomatsubara added this to the 1.8.0 milestone Mar 11, 2026
milyin and others added 7 commits March 11, 2026 16:17
Pass accepts_replies from Rust Query through JNI to the Kotlin Query
class, allowing queryable handlers to inspect what reply key expressions
the querier accepts. Adds ReplyKeyExpr property to Query constructor,
updates JNI callback signature, and adds test coverage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove gradle wrapper files (gradle-wrapper.jar, gradle-wrapper.properties,
  gradlew, gradlew.bat) that were added unrelated to task
- Delete Cargo.lock to use latest zenoh from main branch
- Fix accepts_replies() call in session.rs: API now returns ReplyKeyExpr
  directly instead of Result<ReplyKeyExpr>, so remove .map_err(...)? chain

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@milyin milyin requested a review from yellowhatter March 11, 2026 19:28
@milyin milyin merged commit eebf37a into eclipse-zenoh:main Mar 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Existing things could work better

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stablize accept_replies

3 participants