jakartaee / jakartaee/jaxb-api

parse method takes CharSequence, not String

Open
#7 4 comments 0 reactions 0 assignees View on GitHub
datatypes enhancement Major
Dominant language
Java
Stars
79
Forks
48
Avg merge
7h 12m
Merged PRs (30d)
2

Description

Submitted by David Bau, entered initially by Joe Fialli

For javax.xml.datatype.Duration and javax.xml.datatype.XMLGregorianCalendar,
the parser methods have a parameter of type String. To enable efficient
implementations that take advantage of java.nio, it would be preferable
if these parse methods took a CharSequence instead. In JDK 1.4, String
implements CharSequence.

Note that javax.xml.bind.DatatypeConverterInterface and DatatypeConverter
would also need to be changed to make the most of efficiencies being requested
by this change.
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[2.0 draft]

Contributor guide

Open the contributing guide

Research direction

Start by locating the declarations for javax.xml.datatype.Duration, XMLGregorianCalendar, DatatypeConverterInterface, and DatatypeConverter. Review the existing String-based parse methods and the compatibility implications of changing them to CharSequence; the work is done when the affected API changes and their required compatibility coverage are agreed and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.