Fix for #1512: Java inner interfaces are all static
Test for #1512: Java inner interfaces are all static