play1 icon indicating copy to clipboard operation
play1 copied to clipboard

1.7.0(?): Groovy compiler creates "Template_*.class" files in root app dir.

Open qabi opened this issue 3 years ago • 1 comments

After upgrading from 1.6 on Java 8 to 1.7 on Java 11/17, I get a lot of files like 'Template_1001.class' etc. in the root of the app dir. This is the case for precompiling as well as normal compilation.

As far as I can tell this is more or less hardwired in the Groovy compiler (to output a file). I am not sure if these files were written somewhere else before?

I tried changing back to 1.6.0/Java8 and it still seems to happen. So I am at a loss for explaining exactly why this happens, since it did not before.

Seen on Ubuntu 22.04 and MacOS.

Can anybody shed some light on where the (temporary?) compiled groovy classes are supposed to go? Or if they should be deleted after writing the other files under /tmp?

See also: StackOverflow issue

qabi avatar Apr 28 '22 12:04 qabi

There was a regression but this was recently fixed again and should be available in the next release, see https://github.com/playframework/play1/commit/ed2622db58b0d4311c50cabb2edeba6e5595f925

tazmaniax avatar Apr 28 '22 13:04 tazmaniax