javaee / jaxb-spec

Formerly jsr222.java.net
Other
9 stars 16 forks source link

parse method takes CharSequence, not String #7

Open glassfishrobot opened 21 years ago

glassfishrobot commented 21 years ago

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]

glassfishrobot commented 21 years ago

Reported by @jfialli

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JSR222-7