461b108663
Fortunately this did not require using any JDK 1.8-specific APIs, just searching (via reflection) through the set of interfaces implemented by a class in addition to its super-classes. One downside is that the transitive set of all implemented interfaces could be much larger than the super-class chain, but this is the last thing we search, so in theory we only even get here if we were about to fail to find the getter entirely. This also means that our tests have to be compiled and run with Java 8, because I was not in the mood to figure out how to do all the complex Maven jockeying to have a special JDK8 profile and disable JDK8 tests in the normal profile and re-enable them in the JDK8 profile and blah blah blah, just shoot me now.
16 lines
231 B
YAML
16 lines
231 B
YAML
sudo: false
|
|
|
|
language: java
|
|
|
|
jdk:
|
|
- oraclejdk8
|
|
- openjdk8
|
|
|
|
cache:
|
|
directories:
|
|
- '$HOME/.m2/repository'
|
|
|
|
script:
|
|
- mvn -B cobertura:cobertura coveralls:cobertura
|
|
- rm -rf $HOME/.m2/repository/com/samskivert/jmustache
|