Skip to content

v0.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Sep 20:33
· 69 commits to main since this release

v0.7.0

Roseau 0.7.0 adds two new breaking change kinds, fixes a long list of false positives and false negatives, uses SLF4J as the logging interface, and fixes several issues around classpath, reports, and configuration handling in the CLI and Maven plug-in.

Highlights

  • Two new breaking change kinds:
    • TYPE_NOW_SEALED fires when a type becomes sealed; this was already correctly flagged by CLASS_NOW_FINAL but having two distinct kinds makes it easier to distinguish the two cases.
    • CLASS_NO_LONGER_CONCRETELY_EXTENSIBLE fires when a class can still be extended, but external clients can no longer declare a concrete subclass of it. This happens when the class carries an abstract package-private method, which cannot be overridden by clients.
  • A batch of accuracy fixes to generics, inherited members, thrown exceptions, and constructor visibility, removing both false positives and false negatives.
  • Roseau now uses SLF4J as the logger interface and should no longer clash with other logging frameworks.
  • CLI results go to stdout; all diagnostics go to stderr.
  • --v1/--v2 now automatically resolve the transitive classpath of the supplied Maven coordinates.
  • Class directories can now be supplied as classpath in addition to JARs.
  • The Maven plug-in now fails the build when it fails to write a report.
  • Reports are now fully deterministic: identical inputs produce identical output.

Changelog

🚀 Features

  • 7154812 feat: use SLF4J as the logging interface
  • 5f603b4 feat: add git/ module in the reactor; BatchGitWalker walks entire Git histories, with API/BCs CSV reporting
  • 9d7bee2 feat: HierarchyProvider::getDeclaredExportedMethods/getDeclaredExportedFields
  • 83ea3d8 feat: accept class directories as classpath
  • c51428b feat: warn when --v1/--v2 is empty or has no public API
  • 916b04f feat!: drop combinatorial module
  • f062e84 feat: run smoke tests nightly, disable for regular builds, keep for release
  • 50a5112 feat: add support for detecting TYPE_NOW_SEALED breaking changes
  • 3451553 feat: add support for detecting CLASS_NO_LONGER_CONCRETELY_EXTENSIBLE breaking changes

🐛 Fixes

  • 89e9b33 fix: IgnoreCsvFile must unquote parsed fields
  • 6591bbb fix: walk.yaml should reside in git/
  • 59405d9 fix: make RoseauReport's output fully deterministic
  • fc30a9a fix: parse source files deterministically in JdtTypesExtractor
  • 3c0761f fix: only publish -SNAPSHOT snapshots, only publish non-SNAPSHOT releases
  • 9f5e1a2 fix: proper formatting and retention for (repeatable) annotations, array and object values
  • 60079f8 fix: ensure enums with constant bodies are not incorrectly flagged abstract by JDT
  • d047b90 fix: isExported() should only check types that belong to the present module; others are exported by default
  • 54e19a6 fix: only report missing types once in JdtTypesExtractor
  • 7a56658 fix: always build a NO_LOCATION when parsing invalid source locations from JSON
  • 1008612 fix: properly escape CSV/MD reports
  • 0cc94d8 fix: escape report fields and read quoted ignore CSV
  • 664113a fix: honor the YAML/Maven flags when writing API reports in Maven plug-in
  • 8e0929a fix: failing to write a report should fail the Maven build
  • 9ea6115 fix: also include provided/system-scope dependencies in Maven's compile classpath
  • b7ed274 fix: proper override behavior between Maven/YAML flags
  • 5d45c81 fix: incremental JDT build now also reparses all sources whenever a module declaration changes
  • 5bfd4d2 fix: incremental JDT build now reparses all sources whenever the classpath changes
  • e954b26 fix: resolve unresolved JDT type names from imports instead of the current package
  • d222b8a fix: resolve classpaths when accepting coordinates as --v1/--v2 and pass them to the analysis
  • 7a3683e fix: only replace YAML's source/binaryOnly when they're explicitly set in the CLI
  • 1432176 fix: extractors can return null locations, DefaultApiFactory must guard against that
  • ccbe329 fix: making the constructor of an abstract class protected isn't breaking as it cannot have been instantiated
  • 6c3713d fix: fire FORMAL_TYPE_PARAMETER_REMOVED whenever the executable remains generic with fewer type parameters
  • c03aef2 fix: don't propagate verbosity to all dependencies in the CLI, only Roseau/ASM/JDT
  • e69914b fix: don't report EXECUTABLE_NO_LONGER_THROWS_CHECKED_EXCEPTION when an exception becomes unchecked
  • 2b1d8fe fix: proper type-parameter substitution in inherited type members, avoiding spurious FPs/FNs
  • 62d9f79 fix: void-to-anything is assignment-compatible
  • ff5d3be fix: CLI and Maven plug-in should ship their own log4j implementation to avoid annoying startup warning
  • 064f247 fix: remove generic classpath warning and log individual resolution failures instead

🔄️ Changes

  • 90ef1b4 refactor: avoid generating potentially colliding keys in CachingTypeReferenceFactory and just rely on reference equality
  • e46b5a4 refactor!: keep API as a resolved snapshot, compose an analyzer

🧪 Tests

  • d11bb27 test: enable more libraries in smoke tests
  • a249ba4 test: include additional smoke libraries
  • 0b713b4 test: run JdkTestIT using the jmods and sources of the running JDK
  • edebc8e test: fix a few @client that wouldn't compile

🧰 Tasks

  • 074791e chore: release v0.7.0
  • 97a7e20 chore: only analyze TEST-*.xml with dorny/test-reporter

🛠 Build

  • 0006ea8 build(deps): bump org.apache.maven.plugins:maven-failsafe-plugin (#205)
  • 055c754 build(deps-dev): bump org.jreleaser:jreleaser-maven-plugin (#204)
  • e9410ab build(deps): bump org.apache.maven.plugins:maven-compiler-plugin (#203)
  • 0c71287 build(deps): bump org.apache.maven.plugins:maven-surefire-plugin (#202)
  • 4642364 build(deps): bump pymdown-extensions (#201)
  • e2b4390 build(deps): bump actions/setup-java from 5 to 6 (#198)
  • dbe42f5 build(deps): don't use org.apache.maven.resolver:maven-resolver's BOM-like POM; declare explicit dependencies towards our two org.apache.maven.resolver:maven-resolver dependencies
  • 2b5d311 build(deps): bump com.google.guava:guava-bom (#197)
  • 6fb2a30 build(deps): bump pymdown-extensions (#191)
  • 7c04a9f build(deps): bump com.fasterxml.jackson:jackson-bom (#194)
  • e229271 build(deps): bump org.json:json from 20260719 to 20260814 (#195)
  • 63e14b2 build(deps): bump org.junit:junit-bom from 6.1.2 to 6.1.3 (#196)
  • 282396e build(deps): bump org.apache.maven.plugins:maven-jar-plugin (#188)
  • 9b5a431 build(deps-dev): bump com.tngtech.archunit:archunit-junit5 (#192)
  • b928506 build(deps): bump org.apache.maven:apache-maven from 3.9.14 to 3.9.16 (#193)
  • 7d9c258 build(deps): bump actions/setup-python from 6 to 7 (#187)
  • 00b2783 build(deps): bump org.json:json from 20260522 to 20260719 (#186)
  • d938ae4 build(deps): bump org.junit:junit-bom from 6.1.1 to 6.1.2 (#184)
  • 7cccf60 build(deps): bump com.fasterxml.jackson:jackson-bom (#185)
  • c0154b9 build(deps): bump org.apache.logging.log4j:log4j-bom (#180)
  • a34bafb build(deps-dev): bump org.jreleaser:jreleaser-maven-plugin (#182)
  • fa3d35d build(deps): bump org.junit:junit-bom from 6.1.0 to 6.1.1 (#179)
  • b5f0300 build(deps): bump actions/cache from 5 to 6 (#178)
  • dad5fe7 build(deps): bump actions/checkout from 6 to 7 (#177)
  • 0053108 build(deps): bump org.eclipse.jdt:org.eclipse.jdt.core (#175)
  • fa9e9e4 build(deps): bump the pip group across 1 directory with 2 updates (#171)
  • 7249df2 build(deps): bump org.apache.maven.plugins:maven-surefire-plugin (#172)
  • 29195e3 build(deps): bump org.apache.maven.plugins:maven-failsafe-plugin (#173)

📝 Documentation