# Akka-stream\_2.12 has classes compiled with jdk11?

**URL:** <https://discuss.akka.io/t/akka-stream-2-12-has-classes-compiled-with-jdk11/5007>\
**Category:** Akka Streams & Alpakka\
**Created:** [September 6, 2019, 3:19pm UTC](https://discuss.akka.io/t/akka-stream-2-12-has-classes-compiled-with-jdk11/5007 "2019-09-06T15:19:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mebigfatguy](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/mebigfatguy/32/1088_2.png) [@mebigfatguy](https://discuss.akka.io/u/mebigfatguy)\
**Post date:** [September 6, 2019, 3:19pm UTC](https://discuss.akka.io/t/akka-stream-2-12-has-classes-compiled-with-jdk11/5007/1 "2019-09-06T15:19:50Z")

</div>

the class JavaFlowSupport seems compiled with jdk11. Is this intended? when i have tools that do class scanning that are expecting jdk8, it barfs, and i can’t continue. Is there a 2.12 variant that only relies on jdk8?

com.typesafe.akka:akka-stream\_2.12:2.5.23

Classfile /home/dave/Desktop/javadsl/JavaFlowSupport.class  
Last modified Sep 6, 2019; size 788 bytes  
MD5 checksum 9e5d03f67404b811f73492260b797b08  
Compiled from “JavaFlowSupport.java”  
public final class akka.stream.javadsl.JavaFlowSupport  
minor version: 0  
major version: **55**  
flags: ACC\_PUBLIC, ACC\_FINAL, ACC\_SUPER

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [September 6, 2019, 3:44pm UTC](https://discuss.akka.io/t/akka-stream-2-12-has-classes-compiled-with-jdk11/5007/2 "2019-09-06T15:44:25Z")

</div>

`JavaFlowSupport` is for integration with the reactive-streams APIs after they became part of the JDK stdlib (9+) so that is why they have to be compiled with a later JDK. Theres no artifacts published without it. You can perhaps omit that specific class from your JDK8-only tools or preprocess the jar to skip that class.

In normal usage it is not a problem because you wouldn’t touch that class on JDK8 as the APIs aren’t int the stdlib.

---

<div class="post-metadata">

**Author:** ![mebigfatguy](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/mebigfatguy/32/1088_2.png) [@mebigfatguy](https://discuss.akka.io/u/mebigfatguy)\
**Post date:** [September 6, 2019, 4:04pm UTC](https://discuss.akka.io/t/akka-stream-2-12-has-classes-compiled-with-jdk11/5007/3 "2019-09-06T16:04:16Z")

</div>

Thanks, is that class (and it’s inner class, Sink) the only ones? or is there some way to determine which classes are jdk11 without manually looking at each?

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [September 9, 2019, 6:49am UTC](https://discuss.akka.io/t/akka-stream-2-12-has-classes-compiled-with-jdk11/5007/4 "2019-09-09T06:49:09Z")

</div>

That class an its inner classes (Source, Flow, Sink) are the only ones.
