Subject: Re: [jira] [Commented] (JCR-3954) Searches with
backslash cause expection



BTW: This code would execute 10x faster as a switch statement:
if (c == '!' || c == '(' || c == ':' || c == '^'
            || c == '[' || c == ']' || c == '{' || c == '}' || c == '?' || c == '\\') {
            sb.append('\\');
        }

Best regards,Clay Ferguson[email protected]

On Wed, Dec 21, 2016 at 6:37 PM, Vikas Saurabh (JIRA) <[email protected]> wrote:

    [ https://issues.apache.org/jira/browse/JCR-3954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15768591#comment-15768591 ]

Vikas Saurabh commented on JCR-3954:
------------------------------------

[~anagarwa], [~reschke] pointed me to JCR-3800. In that light, I think his [comment|https://issues.apache.org/jira/browse/JCR-3800?focusedCommentId=15767021&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15767021] over there makes more sense that improving this method (which already is doing fairly half hearted job). Let's follow up over there. In the mean time, I think we can close this issue on account of "not worth it&...

quot;.

> Searches with backslash \ cause expection
> -----------------------------------------
>
>                 Key: JCR-3954
>                 URL: https://issues.apache.org/jira/browse/JCR-3954
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-commons
>    Affects Versions: 2.12.1
>            Reporter: Ankit Agarwal
>            Assignee: Vikas Saurabh
>
> while creating a query with '/' it creates an exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)



Programming list archiving by: Enterprise Git Hosting