Skip to content

v0.2.1

Compare
Choose a tag to compare
@ascopes ascopes released this 19 Feb 15:56
· 1108 commits to main since this release

Bugfixes/API changes

This patch includes some new API changes that are non-breaking that were needed to
patch various bits and pieces internally.

  • GH-354, GH-294, GH-356 related API changes:
    • Add new method: PathFileObject#getBinaryName
    • JctCompilationFactoryImpl will now error if no initial compilation units
      were found with a clearer error message.
    • JctCompilationFactoryImpl will now error if any of the explicitly provided
      class names are not found as compilation units.
    • JctCompilationFactoryImpl will now error if the list of provided class
      names is non-null but empty.
    • Allow call chaining on PackageContainerGroupAssert#allFilesExist.
    • Add a new method TeeWriter#getContent that gets the lines of content
      within a TeeWriter, as this is easier to stub than #toString due to
      how Mockito works internally.
    • Add a new method TeeWriter#wrapOutputStream that wraps a given
      OutputStream and Charset in an OutputStreamWriter and inserts that
      into a new TeeWriter that is returned.
    • Fix regression in JctCompilationFactoryImpl where the locale was not
      being set during compilations.
    • Fix bug in JctCompilationFactory where the TeeWriter was not being flushed,
      so buffered content may not have been written to System.out properly
      in some edge cases.
    • Improve performance of JctCompilationFactoryImpl for explicit class name
      lookup by avoiding creating a distinct collection that is iteratively
      resized with O(n) space complexity.
    • Fixes GH-354: Fix incorrect logic for filtering explicit class names that previously
      resulted in an exception being raised if annotation processing was not configured in
      a very specific way.

Other changes

Full Changelog: v0.2.0...v0.2.1