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

Gary D. Gregory commented on IO-773:
------------------------------------

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

Reply via email to