This looks intentional. When I said it leaves you with no way to access foobar’s local zap, I was referring to the Java resolution rules. With Kotlin you can use zap
to target the local or this.zap
for the member; it may be counterintuitive, but with Java there’s no way to access the local.
I’m facing this exact issue with a Java plugin project and considering doing exactly what Kotlin does.