United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4886033 Query.initialSubString etc fail if matched string contains wildcards
JDK-4886033 : Query.initialSubString etc fail if matched string contains wildcards

Details
Type:
Bug
Submit Date:
2003-07-02
Status:
Resolved
Updated Date:
2005-07-22
Project Name:
JDK
Resolved Date:
2005-07-22
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:

Related Reports

Sub Tasks

Description
Query.{initial,any,final}SubString work by translating the string into a Query.match pattern.  For example, Query.initialSubString(a, Query.value("x")) is equivalent to Query.match(a, Query.value("x*")).  The problem arises if "x" is a string that already contains wildcards.  This string should be a literal match, but the implementation will interpret the wildcards as such.

                                    

Comments
EVALUATION

Fairly straightforward to fix, but apparently nobody has ever run into this problem in the years that it has been present in the JMX RI so it may not be included in Tiger.
###@###.### 2004-02-10
                                     
2004-02-10
PUBLIC COMMENTS

.
                                     
2004-09-01
SUGGESTED FIX

Escape any magic characters in the string before giving it to Query.match.
                                     
2004-09-01



Hardware and Software, Engineered to Work Together