lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joey Surls (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (LUCENE-2032) Spatial Filters not Serializable
Date Thu, 05 Nov 2009 13:28:48 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joey Surls reopened LUCENE-2032:
--------------------------------


CartesianShapeFilter also uses the non-Serializable class Shape

I think all that is needed is to add Serializable to Shape

The following code can be used to verify any other embedded classes not serialized:

private static boolean isSerializable(Serializable o) throws IOException{
		try{
			ByteArrayOutputStream bos = new ByteArrayOutputStream();
			ObjectOutputStream oos = new ObjectOutputStream(bos);
			oos.writeObject(o);
			return true;
		}catch(NotSerializableException e){
			e.printStackTrace();
			return false;
		}
	}

> Spatial Filters not Serializable
> --------------------------------
>
>                 Key: LUCENE-2032
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2032
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.9
>            Reporter: Joey Surls
>            Assignee: Uwe Schindler
>             Fix For: 3.0
>
>         Attachments: LUCENE-2032.patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> I am using Lucene in a distributed setup. 
> The Filters in the spatial project aren't Serializable even though it inherits it from
Filter. Filter is a Serializable class. 
> DistanceFilter contains the non-Serializable class WeakHashMap.
> CartesianShapeFilter contains the non-Serializable class java.util.logging.Logger

-- 
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


Mime
View raw message