Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

parse method takes CharSequence, not String #7

Open
@glassfishrobot

Description

@glassfishrobot

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]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions