Skip to content
CAI
Software that uses CAICheck a score

scala/scala-java8-compat

63.5

Adequate · 6 November 2026

8.2k

lines of production code

Scala

with Java

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added Java 8 Streams compatibility benchmark suite

The benchmark module now includes a complete JMH-based suite for semi-manually benchmarking the Java 8 streams compatibility layer in Scala collections. This addition introduces code generation tools (CodeGen.scala) to create benchmark targets, source generators (CollectionSource.scala) for various collection types (including Java ArrayList/LinkedList and Scala collections), and operation definitions (Operations.scala) for metrics like sum, filter/map/sum, and trigonometry. It also provides a log parser (ParseJmhLog.scala) to visualize performance comparisons between base collections, iterators, steppers, and streams. Initial benchmark results and documentation are included to guide users through the computationally expensive process.

benchmark · high confidence

New Java 8 Stream and Iterator conversion utilities for Scala collections

This release adds comprehensive support for converting Scala collections to Java 8 Streams and primitive iterators, enabling seamless interoperability with Java's Stream API. For Scala 2.13+, the \scala.compat.java8.StreamConverters\ trait provides extension methods like \seqStream\ and \parStream\ on \IterableOnce\, \Map\, and \Stepper\ types, leveraging the new \Stepper\ infrastructure for efficient parallel processing. For Scala 2.12 and earlier, \ScalaStreamSupport\ offers static utility methods to create streams from specific collection types (e.g., \IndexedSeq\, \HashMap\, \Vector\), with specialized handling for keys and values. Additionally, new wrapper classes (\IteratorPrimitiveIntWrapper\, \IteratorPrimitiveLongWrapper\, \IteratorPrimitiveDoubleWrapper\) implement \java.util.PrimitiveIterator\ interfaces, allowing Scala iterators to be used directly with Java's primitive stream operations. These changes are located in \src/main/scala-2.13+/scala/compat/java8/\ and \src/main/scala-2.13-/scala/compat/java8/\, providing version-specific implementations for the conversion layer.

src/main · high confidence

Behavioural changes

Library rebranded to scala-java8-compat with expanded documentation and license change

The project has been renamed to scala-java8-compat and its license changed to Apache 2.0, accompanied by a comprehensive update to the README that clarifies the library's purpose as a Java 8 compatibility kit for Scala 2.11 and 2.12 (noting that Scala 2.13+ users should use scala.jdk). The documentation now details the full suite of converters, including those for scala.Option to java.util.Optional, scala.concurrent.Future to java.util.concurrent, and Scala collections to Java 8 Streams, along with usage examples for both Scala and Java.

(repo-wide) · high confidence

Replaced build infrastructure with new code generation and sbt 1.13

The build definition has been restructured to use sbt 1.13.0 and the sbt-scala-module plugin 3.4.1. The previous code generation approach, which relied on scala-compiler and scala-reflect dependencies, has been removed and replaced with new Scala source files (CodeGen.scala and WrapFnGen.scala) that generate specialized functional interfaces and Java/Scala converters directly. This change simplifies the build by eliminating heavy compiler dependencies and updates the underlying build tooling.

project · high confidence

Test coverage

Added test coverage for Java 8 compatibility converters; Added test coverage for Java 8 compatibility library; Added tests for Java 8 Stream and Stepper converters; Added tests for Java 8 lambda deserialization.

Dependencies

Upgrade to Scala 2.13.18, 2.12.21, 3.3.8 and update test dependencies

The project has updated its supported Scala versions to 2.13.18, 2.12.21, 2.11.12, and 3.3.8. Additionally, test dependencies have been updated, including JUnit to 4.13.2, Commons Lang3 to 3.12.0, and JUnit Interface to 0.13.3.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 63 → 64 (+0.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 74 → 74 (+0.0)
  • Architecture 90 → 88 (-1.7)
  • Maturity 54 → 58 (+3.4)
  • Readiness 61 → 61 (+0.0)
  • Security 82 → 70 (-12.1)
  • Performance 89 → 89 (+0.0)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (1)

  • Off-boarding risk: anonymized user #1

Changes since last survey

  • 3 commits — 3 feature/other, 0 fixes

By area

  • (root) — 1 commit
  • .github/workflows — 1 commit
  • project/build.properties — 1 commit

Notable commits

  • change: Bump coursier/cache-action from 8 to 9
  • change: Update sbt, scripted-plugin to 1.13.1
  • change: Update scala3-library to 3.3.9

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

scala/scala-java8-compat was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 689ce22553e81f5302c9eb25ee543bc963144d49 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-60d1b390edf0.