Releases

Guice 5.1.0

qianmoQqianmoQ· 更新于 2026-09-23· 阅读 6 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

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.

评论

登录后参与评论

正在加载评论…