spring-projects/spring-data-commons — pull request #64 by thomasdarimont (2014-02-18 13:57:31+00:00)
Title: DATACMNS-441 - Analyzing @Query annotated bridge methods lead to NPEs during QueryMethod processing in Java 8.

We now skip bridge methods for @Query method processing in order to circumvent the changed behaviour in Class#getMethods() in Java 8 (when the code was compiled with target byte code level 1.8) which results in bridge methods being found and inspected for query method annotations. Since we currently cannot analyse generic return types of bridge methods this results in NPEs being thrown at a later stage in AbstractRepositoryMetadata#getReturnedDomainClass(..).
See also DATAJPA-465.