3 > 4 regression

OCsite <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <[email protected]>
Hi there,

looks like 3 used to inline private static finals, while 4 does not, which causes the following regression. Is that the intended behaviour, or a bug?

Thanks,
OC

===
1030 ocs /tmp> <q.groovy          
class Foo {
  private static final String wth='wth'
  def foo() {
    1.times {
      println wth
    }
  }
}
class Bar extends Foo { }
new Bar().foo()
1031 ocs /tmp> /usr/local/groovy-3.0.8/bin/groovy q
wth
1032 ocs /tmp> /usr/local/groovy-4.0.0-alpha-1/bin/groovy q.m
Caught: java.io.FileNotFoundException: /private/tmp/q.m (/private/tmp/q.m)
java.io.FileNotFoundException: /private/tmp/q.m (/private/tmp/q.m)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
1033 ocs /tmp>
===
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.