Skip to content

Inheritance of AbstractAuthenticationBuilder in Kotlin #19805

Description

@ilia1243

Expected Behavior

AbstractAuthenticationBuilder class should be public for it to be inherited by a public class in Kotlin.

Current Behavior

The following code

open class Builder<B : Builder<B>>(token: MyAuthentication) : AbstractAuthenticationBuilder<B>(token) {
    ...
}

does not compile with error 'public' subclass exposes its 'protected (in AbstractAuthenticationToken)' supertype 'AbstractAuthenticationBuilder'..

Custom Builder class should in turn be public because it is exposed by public MyAuthentication.toBuilder() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions