There is absolutely no difference. Staticity is ignored in this situation.
To test, I created the groovy class and passed the file "javap -verbose StaticTest" to the file. Then put "static" in front of the def class and pass it to the second file. Then I split the two files. The only differences were those unique identifiers that are associated with a long class identifier, which is generated new for each class.
source
share