[
https://issues.apache.org/jira/browse/TAMAYA-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360210#comment-16360210
]
ASF GitHub Bot commented on TAMAYA-328:
---------------------------------------
GitHub user peculater opened a pull request:
https://github.com/apache/incubator-tamaya/pull/12
TAMAYA-328: Let CharConverter parse a single apostrophe character
CharConverter uses paired apostrophes (') to delimit multi-character
strings and pulls the first into a Character object as needed. That
works great, but has made it to where a single apostrophe by itself
cannot be used directly. Entertainingly, "'''" works, but "'" throws an
exception. This adds a simple check if the string is 1 character long
after having determined that it starts with an apostrophe.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/peculater/incubator-tamaya TAMAYA-328
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-tamaya/pull/12.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12
----
commit a606c878003a954d8888dc66aaf891f6193e3149
Author: William Lieurance <william.lieurance@...>
Date: 2018-02-12T01:38:31Z
TAMAYA-328: Let CharConverter parse a single apostrophe character
CharConverter uses paired apostrophes (') to delimit multi-character
strings and pulls the first into a Character object as needed. That
works great, but has made it to where a single apostrophe by itself
cannot be used directly. Entertainingly, "'''" works, but "'" throws an
exception. This adds a simple check if the string is 1 character long
after having determined that it starts with an apostrophe.
----
> Single apostrophe cannot be cast to Character with CharConverter
> ----------------------------------------------------------------
>
> Key: TAMAYA-328
> URL: https://issues.apache.org/jira/browse/TAMAYA-328
> Project: Tamaya
> Issue Type: Bug
> Reporter: William Lieurance
> Priority: Major
>
> CharConverter uses paired apostrophes (') to delimit multi-character strings
> and pulls the first into a Character object as needed. That works great, but
> has made it to where a single apostrophe by itself cannot be used directly.
> Entertainingly, "'''" works, but "'" throws an exception.
> I've got a test case and a patch I'll push up to github for this. I've not
> found any other single characters that cannot be used.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)