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.
The SmallRye GraphQL guide contains an invalid Java interface declaration in the section about GraphQL unions.
The guide currently shows:
However, in Java, an interface cannot
implementanother interface. It mustextendit instead.The correct declaration is:
SearchResultis declared as an interface in the preceding example:So the current example does not compile as written.
The affected documentation is here
This should be a small documentation-only fix replacing
implementswithextends.