You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/06/14 13:44:00 UTC
[jira] [Comment Edited] (IO-773) RegexFileFilter is no longer Serializable
[ https://issues.apache.org/jira/browse/IO-773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17554103#comment-17554103 ]
Gary D. Gregory edited comment on IO-773 at 6/14/22 1:43 PM:
-------------------------------------------------------------
Hi [~dr.z]
Thank you for your report.
Please try with git master or a 2.12.0-SNAPSHOT build from [https://repository.apache.org/content/repositories/snapshots/|https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-lang3/]
{{RegexFileFilter#RegexFileFilter(Pattern)}} now creates a serializable lambda, so other constructors that call it will create a serializable instance.
If you call {{{}RegexFileFilter#RegexFileFilter(Pattern, Function<Path, String>){}}}, you'll have to make the lambda serializable before passing it in.
was (Author: garydgregory):
Hi [~dr.z]
Thank you for your report.
Please try with git master or a 3.13.0-SNAPSHOT build from [https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-lang3/]
{{RegexFileFilter#RegexFileFilter(Pattern)}} now creates a serializable lambda, so other constructors that call it will create a serializable instance.
If you call {{{}RegexFileFilter#RegexFileFilter(Pattern, Function<Path, String>){}}}, you'll have to make the lambda serializable before passing it in.
> RegexFileFilter is no longer Serializable
> -----------------------------------------
>
> Key: IO-773
> URL: https://issues.apache.org/jira/browse/IO-773
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.10.0, 2.11.0
> Reporter: Dominik Reinarz
> Priority: Major
> Fix For: 2.12.0
>
>
> org.apache.commons.io.filefilter.RegexFileFilter cannot be serialized b/c org.apache.commons.io.filefilter.RegexFileFilter.pathToString Function
--
This message was sent by Atlassian Jira
(v8.20.7#820007)