Skip to content

Commit

Permalink
plug a loophole in repository inheritance
Browse files Browse the repository at this point in the history
there was still a way to sneak in a generic repository method
  • Loading branch information
gavinking committed Apr 4, 2024
1 parent e80d824 commit 8d78c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/repository.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ A repository interface may inherit methods from a superinterface.
A superinterface of a repository interface must either:

- be one of the built-in generic repository supertypes defined by this specification, `DataRepository`, `BasicRepository`, or `CrudRepository`, or
- be a non-generic toplevel interface with no type parameters, whose abstract methods likewise declare no type parameters.
- be a non-generic toplevel interface with no type parameters, whose abstract methods likewise declare no type parameters, and which does not itself directly or indirectly inherit any generic interface or any interface whose abstract methods declare type parameters.

A Jakarta Data implementation must treat abstract methods inherited by a repository interface as if they were directly declared by the repository interface.

Expand Down

0 comments on commit 8d78c1e

Please sign in to comment.