Hi Peter,

I was looking into a build failure I saw in JGDMS, and saw something odd:

On my local machine, I’m seeing the compile error below (using jdk 11 [openjdk 
version "11.0.6" 2020-01-14] or jdk 8 [java version “1.8.0_221"]):

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) 
on project outrigger-dl: Compilation failure: Compilation failure: 
[ERROR] 
/Users/bhamail/javadev/github/bhamail/JGDMS/JGDMS/services/outrigger/outrigger-dl/src/main/java/org/apache/river/outrigger/proxy/EntryRep.java:[492,68]
 unreported exception java.lang.NoSuchMethodException; must be caught or 
declared to be thrown
[ERROR] 
/Users/bhamail/javadev/github/bhamail/JGDMS/JGDMS/services/outrigger/outrigger-dl/src/main/java/org/apache/river/outrigger/proxy/EntryRep.java:[492,82]
 unreported exception java.lang.reflect.InvocationTargetException; must be 
caught or declared to be thrown


I can easily fix this by adding additional “catch” blocks. I will gladly push a 
PR if it makes sense to do so.

What has me confused is my CI build is not getting this compile error, and I’m 
not sure why.

Looking forward to learning what you think might cause this.

Dan

Reply via email to