pitest icon indicating copy to clipboard operation
pitest copied to clipboard

Issue in build pulling in old version of java

Open nagkumar opened this issue 2 years ago • 1 comments

_8:18:35 am PIT >> INFO : MINION : 8:18:35 am PIT >> WARNING : Could not load com.tejasoft.utils.tests.ju.ju5.ut.parms.TestCounter6EnumSource com/tej
asoft/utils/tests/ju/ju5/ut/parms/TestCounter6EnumSource has been compiled by a more recent version of the Java Runtime (class file version 63.0), this version of the Java Runtime only recognizes class file versions up to 61.0
8:18:35 am PIT >> INFO : MINION : 8:18:35 am PIT >> WARNING : Could not load com.tejasoft.utils.tests.ju.ju5.ut.parms.TestCounter6EnumSource$Counter
Enums com/tejasoft/utils/tests/ju/ju5/ut/parms/TestCounter6EnumSource$CounterEnums has been compiled by a more recent version of the Java Runtime (class file version 63.0), this version of the Java Runtime only recognizes class file versions up to 61.0
8:18:35 am PIT >> INFO : MINION : 8:18:35 am PIT >> WARNING : Could not load com.tejasoft.utils.tests.ju.ju5.ut.parms.TestCounter7EmptyEnumSource co
m/tejasoft/utils/tests/ju/ju5/ut/parms/TestCounter7EmptyEnumSource has been compiled by a more recent version of the Java Runtime (class file version 63.0), this version of the Java Runtime only recognizes class file versions up to 61.0
8:18:35 am PIT >> INFO : MINION : 8:18:35 am PIT >> WARNING : Could not load com.tejasoft.utils.tests.ju.ju5.ut.parms.TestCounter7EmptyEnumSource$Co
unterName com/tejasoft/utils/tests/ju/ju5/ut/parms/TestCounter7EmptyEnumSource$CounterName has been compiled by a more recent version of the Java Runtime (class file version 63.0), this version of the Java Runtime only recognizes class file versions up to 61.0
8:18:35 am PIT >> INFO : MINION : 8:18:35 am PIT >> WARNING : Could not load com.tejasoft.utils.tests.ju.ju5.ut.parms.TestCounter8MethodSource com/t
ejasoft/utils/tests/ju/ju5/ut/parms/TestCounter8MethodSource has been compiled by a more recent version of the Java Runtime (class file version 63.0), this version of the Java Runtime only recognizes class file versions up to 61.0_

Also it such context, it would be nice report say JDK issue rather than giving the empty report as in

image

nagkumar avatar Feb 07 '24 03:02 nagkumar

Pitest is tested against various versions of Java upto 21 and each commit to master.

https://github.com/hcoles/pitest/blob/master/.github/workflows/ci.yml#L23

This is therefore an issue somewhere in your build.

If you can post a minimal project that reproduces the issue, I can take a look.

hcoles avatar Feb 07 '24 07:02 hcoles