Trying to compile a Jasper Report jrxml file using Goovy language, I got an error on some files.
Eclipse version: 2022-03 Jasper Studio version: 6.19
Error message: BUG! exception in phase 'semantic analysis' in source unit 'calculator_.....' Unsupported class file major version 61
See fix in answer below.