Skip to content

Methods in coercing can throw RunTimeExceptions #3501

Description

@lenin-jaganathan

Describe the bug
The method contracts of Coercing allows for only Coercing*Exceptions to be thrown out of them. But, when the implementations only implement the deprecated versions of the methods using the latest graphql-java, and invoke non-deprecated versions of the APIs with any null values, there is a possibility for AssertionExceptions to be thrown.

Is this an expected behavior? And is it allowed to throw such validation exceptions?

To Reproduce
Use any Scalar from https://github.com/graphql-java/graphql-java-extended-scalars and invoke the non-deprecated API's with null values.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    keep-openTells Stale Bot to keep PRs and issues open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions