Skip to content

Guice510

Googler edited this page Jan 31, 2022 · 2 revisions

Guice 5.1.0

Released Jan, 24th, 2022.

Maven

Guice:

<dependency>
  <groupId>com.google.inject</groupId>
  <artifactId>guice</artifactId>
  <version>5.1.0</version>
</dependency>

Extensions:

<dependency>
  <groupId>com.google.inject.extensions</groupId>
  <artifactId>guice-${extension}</artifactId>
  <version>5.1.0</version>
</dependency>

Downloads

Docs

Changes since Guice 5.0.1

This minor release adds support for Java 17.

Details

See https://github.com/google/guice/compare/5.0.1...5.1.0 for a complete list of changes.

Guice Core
  • Java 17 support: updated asm version and fixed unsafe class defining to work with Java 17.
  • Support TYPE_USE type @Nullable annotations.
  • Improved multibinding to avoid unnecessary linked binding.
  • Added API to access InterceptorBindings in SPI.
  • Removed COMPLETE option for guice_include_stack_traces flag.
AssistedInject
  • Fixed JDK17+ private lookup behavior.
Dagger Adapter
  • Instantiate modules if necessary in DaggerAdapter.
Servlet
  • Fixed bug in UriEncoder that interpreted and stripped numeric prefixes.

Migrating from 5.0.1

See the JDiff change report for complete details.

Clone this wiki locally