You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Konrad Rokicki (JIRA)" <ji...@apache.org> on 2007/07/16 20:21:04 UTC

[jira] Created: (LUCENE-961) RegexCapabilities is not Serializable

RegexCapabilities is not Serializable
-------------------------------------

                 Key: LUCENE-961
                 URL: https://issues.apache.org/jira/browse/LUCENE-961
             Project: Lucene - Java
          Issue Type: Bug
          Components: QueryParser
    Affects Versions: 2.2
            Reporter: Konrad Rokicki
            Priority: Minor


The class RegexQuery is marked Serializable by its super class, but it contains a RegexCapabilities which is not Serializable. Thus attempting to serialize the query results in an exception. 

Making RegexCapabilities serializable should be no problem since its subclasses contain only serializable classes (java.util.regex.Pattern and org.apache.regexp.RE).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-961) RegexCapabilities is not Serializable

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721985#action_12721985 ] 

Mark Miller commented on LUCENE-961:
------------------------------------

+1

Lets add a no arg constructor to the impls and make serializable.

> RegexCapabilities is not Serializable
> -------------------------------------
>
>                 Key: LUCENE-961
>                 URL: https://issues.apache.org/jira/browse/LUCENE-961
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>    Affects Versions: 2.2
>            Reporter: Konrad Rokicki
>            Assignee: Erik Hatcher
>            Priority: Minor
>
> The class RegexQuery is marked Serializable by its super class, but it contains a RegexCapabilities which is not Serializable. Thus attempting to serialize the query results in an exception. 
> Making RegexCapabilities serializable should be no problem since its subclasses contain only serializable classes (java.util.regex.Pattern and org.apache.regexp.RE).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Assigned: (LUCENE-961) RegexCapabilities is not Serializable

Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Hatcher reassigned LUCENE-961:
-----------------------------------

    Assignee: Erik Hatcher

> RegexCapabilities is not Serializable
> -------------------------------------
>
>                 Key: LUCENE-961
>                 URL: https://issues.apache.org/jira/browse/LUCENE-961
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>    Affects Versions: 2.2
>            Reporter: Konrad Rokicki
>            Assignee: Erik Hatcher
>            Priority: Minor
>
> The class RegexQuery is marked Serializable by its super class, but it contains a RegexCapabilities which is not Serializable. Thus attempting to serialize the query results in an exception. 
> Making RegexCapabilities serializable should be no problem since its subclasses contain only serializable classes (java.util.regex.Pattern and org.apache.regexp.RE).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org