conduktor.io ↗

KIP-1265 — Mechanism for automatic detection of internal API usage

Accepted Kafka 4.4 Admin

Introduces a @PublicApi annotation and build-time enforcement mechanism that explicitly marks classes as public API and triggers compile or test failures when internal classes are inadvertently imported by or exposed through public APIs. Kafka's current convention (Javadoc presence = public) is implicit and unenforced, frequently resulting in internal classes leaking into public interfaces and being adopted by plugin developers without stability guarantees.

Details

AuthorAshwin Pankaj
StatusAccepted
Kafka Version4.4
JIRAKAFKA-20032
WikiView on Apache Wiki
Created2026-01-05
Last Modified2026-06-30
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.