From 940b4d1848e8c70ab7642901a68594e8016caffc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 18:51:28 +0200 Subject: Adding upstream version 1:7.0.4. Signed-off-by: Daniel Baumann --- .../patches/librepository-1.1.6-deprecated.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 external/jfreereport/patches/librepository-1.1.6-deprecated.patch (limited to 'external/jfreereport/patches/librepository-1.1.6-deprecated.patch') diff --git a/external/jfreereport/patches/librepository-1.1.6-deprecated.patch b/external/jfreereport/patches/librepository-1.1.6-deprecated.patch new file mode 100644 index 000000000..324a8f416 --- /dev/null +++ b/external/jfreereport/patches/librepository-1.1.6-deprecated.patch @@ -0,0 +1,37 @@ +--- misc/librepository-1.1.6/source/org/pentaho/reporting/libraries/repository/ContentIOException.java 2010-04-27 16:04:50.000000000 +0200 ++++ misc/build/librepository-1.1.6/source/org/pentaho/reporting/libraries/repository/ContentIOException.java 2011-06-13 01:44:35.000000000 +0200 +@@ -43,7 +43,7 @@ + */ + public ContentIOException(final String message, final Exception ex) + { +- super(message, ex); ++ super(message, (Throwable) ex); + } + + /** +--- 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); ++ } + } + } + -- cgit v1.2.3