Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Broken Java 1.6 target compliance. #92

Open
alex-vas opened this issue Aug 22, 2016 · 0 comments
Open

Broken Java 1.6 target compliance. #92

alex-vas opened this issue Aug 22, 2016 · 0 comments

Comments

@alex-vas
Copy link

The IdGenerator class appears to depend on ThreadLocalRandom JDKs class which is introduced in Java 1.7 only.

See the java docs: http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadLocalRandom.html

We need to either bump up the java version in pom.xml or change to to use something like java.util.Random which is known to have poor performance.

See more on JDKs random generator performance comparisons: http://java-performance.info/java-util-random-java-util-concurrent-threadlocalrandom-multithreaded-environments/

I would vote for changing the code and runtime compliance requirements (Language Level) to 1.7 in the pom files. Not sure how it would affect Android developers though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant