[Geoserver-devel] [JIRA] (GEOS-7611) Recursive method on Resources

Alessio Fabiani created an issue

GeoServer / BugGEOS-7611

Recursive method on Resources

Issue Type:

BugBug

Affects Versions:

2.10-beta

Assignee:

Alessio Fabiani

Components:

Main

Created:

30/Jun/16 11:47 AM

Priority:

HighestHighest

Reporter:

Alessio Fabiani

The following method

public static void copy (File data, Resource directory) throws IOException {
String filename = data.getName();
try(InputStream in = new FileInputStream(data))

{ copy(data, directory.get(filename)); }

}

will explode throwing a Stack Overflow Exception

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.110.0#100004-sha1:4011b0e)

Atlassian logo