Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of \p{Alpha} does not work as expected on earlier versions of JDK 17 #4556

Open
Naros opened this issue Mar 15, 2024 · 0 comments · Fixed by antlr/grammars-v4#4029
Open

Comments

@Naros
Copy link

Naros commented Mar 15, 2024

Per discussion in antlr/grammars-v4#4018, raising the issue here.

The problem is that to recognize several characters, such as those in this SQL fragment:

select a ä, b Ḅ from dual;

When Using JDK 17.0.10, the use of \p{Alpha} was sufficient to match against any latin character, including ä and , but when using JDK 17.0.3 this was insufficient as regular characters were no longer being matched.

The solution found for JDK 17.0.3 was to use a combination of A-Z and \p{Alpha} as shown in the aforementioned PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant