fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / jfreereport / patches / librepository-1.1.6-deprecated.patch
blob324a8f4160a44d4fb32084a8e10d3c4ce1ad0e2c
1 --- misc/librepository-1.1.6/source/org/pentaho/reporting/libraries/repository/ContentIOException.java 2010-04-27 16:04:50.000000000 +0200
2 +++ misc/build/librepository-1.1.6/source/org/pentaho/reporting/libraries/repository/ContentIOException.java 2011-06-13 01:44:35.000000000 +0200
3 @@ -43,7 +43,7 @@
4 */
5 public ContentIOException(final String message, final Exception ex)
7 - super(message, ex);
8 + super(message, (Throwable) ex);
11 /**
12 --- misc/librepository-1.1.6/source/org/pentaho/reporting/libraries/repository/file/FileRepository.java 2010-04-27 16:04:50.000000000 +0200
13 +++ misc/build/librepository-1.1.6/source/org/pentaho/reporting/libraries/repository/file/FileRepository.java 2014-07-25 11:21:51.000000000 +0200
14 @@ -19,7 +19,9 @@
16 import java.io.File;
17 import java.io.Serializable;
18 +import java.lang.SecurityException;
19 import java.net.MalformedURLException;
20 +import java.net.URI;
21 import java.net.URL;
23 import org.pentaho.reporting.libraries.repository.ContentIOException;
24 @@ -104,6 +106,11 @@
26 public URL getURL() throws MalformedURLException
28 - return root.getBackend().toURL();
29 + try {
30 + URI uri = root.getBackend().toURI();
31 + return uri.toURL();
32 + } catch (SecurityException e) {
33 + throw new MalformedURLException("impossible" + e);
34 + }