diff --git a/external/jfreereport/patches/librepository-1.1.6-deprecated.patch b/external/jfreereport/patches/librepository-1.1.6-deprecated.patch index a266efc4bb79..324a8f4160a4 100644 --- a/external/jfreereport/patches/librepository-1.1.6-deprecated.patch +++ b/external/jfreereport/patches/librepository-1.1.6-deprecated.patch @@ -9,3 +9,29 @@ } /** +--- misc/librepository-1.1.6/source/org/pentaho/reporting/libraries/repository/file/FileRepository.java 2010-04-27 16:04:50.000000000 +0200 ++++ misc/build/librepository-1.1.6/source/org/pentaho/reporting/libraries/repository/file/FileRepository.java 2014-07-25 11:21:51.000000000 +0200 +@@ -19,7 +19,9 @@ + + import java.io.File; + import java.io.Serializable; ++import java.lang.SecurityException; + import java.net.MalformedURLException; ++import java.net.URI; + import java.net.URL; + + import org.pentaho.reporting.libraries.repository.ContentIOException; +@@ -104,6 +106,11 @@ + */ + public URL getURL() throws MalformedURLException + { +- return root.getBackend().toURL(); ++ try { ++ URI uri = root.getBackend().toURI(); ++ return uri.toURL(); ++ } catch (SecurityException e) { ++ throw new MalformedURLException("impossible" + e); ++ } + } + } +