Community
Participate
Working Groups
If a role ResourceRole implements AutoCloseable using this role in a Java7 try-with-resources like this: try (ResourceRole r = new ResourceRole(baseResource)) { int in = r.read100(); System.out.println(String.valueOf(r.chars)); } running the code complains java.lang.IncompatibleClassChangeError: Found interface Team7$ResourceRole, but class was expected
Created attachment 201679 [details] test & fix Fixed by simply checking isRole(), and if so, consider the resource as an interface type using invokeinterface.
Released as r1901,1902 for 2.1 M2.
Verified for 2.1 using build 201206040388.