home | career | drupal | java | mac | mysql | perl | scala | uml | unix

Groovy example source code file (Groovy4861Bug.groovy)

This example Groovy source code file (Groovy4861Bug.groovy) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Groovy tags/keywords

a, b, foo4861, foo4861, groovy4861bug, groovy4861bug, groovytestcase, inner, inner, integer, integer

The Groovy Groovy4861Bug.groovy source code

package groovy.bugs

class Groovy4861Bug extends GroovyTestCase {
    void testCallSitesUsageInNestedInterface() {
        assert Foo4861.A.j == 3
        assert Foo4861.A.j2 == 7
        assert new Foo4861()
    }
}

private class Foo4861 {
    static interface A {
        static Integer j = 3
        static Integer j2 = j + 4
    }
    static interface B{}
    static class Inner<X> {}
    static Inner<A> method() { null }
}

Other Groovy examples (source code examples)

Here is a short list of links related to this Groovy Groovy4861Bug.groovy source code file:

new blog posts

 

Copyright 1998-2013 Alvin Alexander, alvinalexander.com
All Rights Reserved.