github Azure/azure-sdk-for-java azure-core_1.22.0

latest releases: spring-cloud-azure-starter-monitor_1.0.0-beta.6, azure-monitor-opentelemetry-exporter_1.0.0-beta.25, azure-resourcemanager-appcomplianceautomation_1.0.0...
2 years ago

1.22.0 (2021-11-05)

Features Added

  • Added ReferenceManager which is capable of performing Cleaner-like functionality by allowing a Runnable callback
    to be triggered when an object reference is eligible for garbage collection.
  • Added RequestOptions which allows for a chained set of operations to be applied to an HttpRequest before being
    sent through the HttpPipeline.
  • Added an ETag class which represents an HTTP ETag.
  • Added getJavaClass method to retrieve the representing instance of the TypeReference created.
  • Added support for HTTP method OPTIONS by adding an Options annotation.
  • Added a function to CoreUtils which merges two Contexts together.
  • Added a new feature flag AZURE_JACKSON_ADAPTER_USE_ACCESS_HELPER which indicates to JacksonAdapter to wrap
    serialization calls in AccessController.doPrivileged to prevent SecurityManager exceptions when JacksonAdapter
    has the prerequisite permissions.

Bugs Fixed

  • Fixed a bug where an initial length of 0 wasn't permitted when creating a ByteBuffer collector.
  • Fixed a bug where an exception type would be instantiated and never used in a hot path, reducing memory usage.
  • Fixed a bug where the content length of a serializable request body may return null when it is known (already serialized).

Other Changes

  • Improved performance of operations that merge or retrieve all values of Context.

Don't miss a new azure-sdk-for-java release

NewReleases is sending notifications on new releases.