datafaker icon indicating copy to clipboard operation
datafaker copied to clipboard

Java 8 compatibility of 1.5.0

Open matrei opened this issue 3 years ago • 1 comments

Describe the bug Using datafaker 1.5.0 with java 8 throws java.lang.UnsupportedClassVersionError: net/datafaker/Faker has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

To Reproduce Use net.datafaker:datafaker:1.5.0 with Java 8

Expected behavior That the library can be used with Java 8 as that is stated on the Readme: This library is a modern port of java-faker, built on Java 8, with up to date libraries and several newly added Fake Generators.

Versions:

  • OS: Linux
  • JDK 1.8
  • Faker Version: 1.5.0

Additional context Maybe release a 1.5.1 version that is compiled with target Java 8.

matrei avatar Aug 08 '22 13:08 matrei

I think that's my bad, I probably released it locally from a Java 11 machine instead of using the github action.

Thanks for reporting it, I'll address it soon.

bodiam avatar Aug 08 '22 15:08 bodiam

Also in need of that compatibility. Thanks for bringing it up @matrei

AddisonSnyder avatar Aug 17 '22 16:08 AddisonSnyder

Can you please try the 1.6.0-SNAPSHOT version, and let me know if that one is 1.8 compatible? (It should be)

bodiam avatar Aug 21 '22 23:08 bodiam

I have now tested 1.6.0-SNAPSHOT and this version is 1.8 compatible.

matrei avatar Aug 22 '22 06:08 matrei

Normally I release the versions through github actions, but for 1.5 I released it from my local machine using the maven release plugin, but I think I used 11 by accident. Thanks for testing it!

bodiam avatar Aug 22 '22 08:08 bodiam

The version 1.5 in maven central is still only compatible with JDK 11. May I know when the version will be updated?

mallim avatar Sep 08 '22 01:09 mallim

It should be fixed now, please use version 1.6.0, released today.

bodiam avatar Sep 11 '22 07:09 bodiam