Skip to content

An error in the "extractNamedGroups" method #4

@RefaelAdi

Description

@RefaelAdi

Hello
I'm using Gradle version 7.1.1 and Java 18
When executing the "extractNamedGroups" I'm getting this:
java.lang.ClassCastException: class java.util.regex.Matcher$ImmutableMatchResult cannot be cast to class java.util.regex.Matcher (java.util.regex.Matcher$ImmutableMatchResult

I found that this occurs in this part of the code:

MatchResult r = matcher.toMatchResult();

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions