Skip to content

3.8.0 introduced a breaking change #507

@ebickle

Description

@ebickle

Describe the problem

Version 3.8.0 of the library introduced a breaking change that broke binary compatibility. The method definition of com.auth0.jwt.interfaces.Verification.withAudience changed from (String) to (String[]) when the parameter was modified from being a regular String to using a varargs.

The breaking change is not documented.

What was the expected behavior?

Upgrading to a newer minor version of the library should not cause a breaking change in binary compatibility. Alternately, the breaking change should be documented.

The library should continue to have a proper withAudience(String) overload (or equivalent) to avoid the breaking change (assuming Java permits the overload alongside a varargs).

Reproduction

N/A. Breaking change can be seen in source for PR #246

Environment

  • Version of this library used: 3.18.1 (upgrading from 3.3.0)
  • Version of Java used: Java 8 (OpenJDK variant)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions