Comments (3)
Also breaks the DDRProcessor
. Looks like they've changed what regular expressions mean.
from pljava.
Submitted at bugreport.java.com
as published as JDK-8309515:JI-9075361
In addressing issue 8065554 (MatchResult
should provide values of named-capturing groups), commit openjdk/jdk@ce85cac added a namedGroups
field in Matcher
to cache the map from parentPattern.namedGroups()
.
The map is lazily cached, only when the field is null and namedGroups()
is called (which may be indirectly through a call of start(String)
, end(String)
, or group(String)
. The same cached value will then continue to be returned even if Matcher.usePattern
is later called and the new Pattern
has different named groups, or no named groups, or the same named groups mapped to different integers. Therefore, symptoms can include seeing the wrong results when retrieving by named groups, or spurious IllegalArgumentException
s for groups that the new pattern provides, or exceptions not thrown for groups that the new pattern doesn't provide, or exceptions for an invalid group index when calling a method that takes a group name.
Could be fixed by eliminating the local copy and simply having Matcher.namedGroups()
call parentPattern.namedGroups()
unconditionally, or by having Matcher.usePattern
simply null the field, so the correct map will be lazily cached when next needed.
from pljava.
Resolved in 1.6.5 by detecting when affected by this bug and throwing an exception. The message advises to use either a version of Java earlier than 20, or a version recent enough to have JDK-8309515 fixed.
from pljava.
Related Issues (20)
- Compatibility Table HOT 3
- Current status of custom FDW? HOT 11
- Vision: integration with jOOQ data types HOT 1
- Idea: demonstration of using pl/java with "TestContainers" HOT 1
- Error in Pl/Java Backend Native code stage while installating pl/Java 1.5.8 version HOT 5
- Installed by `LOAD` then packaged as extension broken since postgres/postgres@b9b21ac HOT 1
- "cannot parse AS string" for 1-letter identifiers HOT 1
- JSONB type mapping HOT 2
- wiki update: prebuilt docker images HOT 2
- Vulnerability scan: multiple issues HOT 12
- `NEWLINE` pattern can fail to match HOT 1
- wiki update: testcontainers magic HOT 2
- Error building against PostgreSQL 16 HOT 4
- Fails on s390x HOT 1
- Always prompts that the language pljava does not exist HOT 4
- Class Loading issue HOT 31
- Question: How to install Pl/Java into AWS RDS Postgres HOT 2
- Compilen error occuring while running mvn clean install HOT 2
- dependency not adding..issue in plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pljava.