Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.8
-
None
-
None
-
JAVA_VERSION="1.8.0_111"
OS_NAME="Windows"
OS_VERSION="5.2"
OS_ARCH="amd64"
Description
import groovy.transform.CompileStatic @CompileStatic // also happens without it final class TestCase { static thisShouldCompile() { Object o = new Object() { int inaccessible @Override int hashCode() { inaccessible++ // succeeds when qualified with "this" return super.hashCode() } } } static void main( String... args ) { thisShouldCompile() System.out.println( "Success" ) } }
Could be related to GROOVY-7020