|
Groovy example source code file (Groovy2490Bug.groovy)
The Groovy Groovy2490Bug.groovy source code
package groovy.bugs
class Groovy2490Bug extends GroovyTestCase {
void test () {
System.out.println("One.foo = " + One.foo);
System.out.println("Two.foo = " + Two.foo);
assertEquals One.foo, "hello"
assertEquals Two.foo, "goodbye"
}
}
class One {
static String foo = "hello";
}
class Two extends One{
static String foo = "goodbye";
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy Groovy2490Bug.groovy source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.