Skip to content

Invalid Java interface declaration in SmallRye GraphQL guide #56884

Description

@matthyk

The SmallRye GraphQL guide contains an invalid Java interface declaration in the section about GraphQL unions.

The guide currently shows:

public interface Character implements SearchResult {
    // ...
}

However, in Java, an interface cannot implement another interface. It must extend it instead.

The correct declaration is:

public interface Character extends SearchResult {
    // ...
}

SearchResult is declared as an interface in the preceding example:

@Union
public interface SearchResult {
}

So the current example does not compile as written.

The affected documentation is here

This should be a small documentation-only fix replacing implements with extends.

Activity

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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions