Bump version to 24.04.3.4
[LibreOffice.git] / external / jfreereport / patches / libloader-1.1.6-deprecated.patch
blob79fa046fd099fd051abce5fe89c4ec873e1409da
1 --- misc/libloader-1.1.6/source/org/pentaho/reporting/libraries/resourceloader/ResourceException.java 2010-04-27 16:07:00.000000000 +0200
2 +++ misc/build/libloader-1.1.6/source/org/pentaho/reporting/libraries/resourceloader/ResourceException.java 2011-06-13 02:00:46.000000000 +0200
3 @@ -42,7 +42,7 @@
4 */
5 public ResourceException(final String message, final Exception ex)
7 - super(message, ex);
8 + super(message, (Throwable) ex);
11 /**
12 --- misc/libloader-1.1.6/source/org/pentaho/reporting/libraries/resourceloader/loader/file/FileResourceLoader.java 2010-04-27 16:07:00.000000000 +0200
13 +++ misc/build/libloader-1.1.6/source/org/pentaho/reporting/libraries/resourceloader/loader/file/FileResourceLoader.java 2014-07-24 15:11:26.000000000 +0200
14 @@ -19,6 +19,7 @@
16 import java.io.File;
17 import java.io.IOException;
18 +import java.lang.SecurityException;
19 import java.net.MalformedURLException;
20 import java.net.URL;
21 import java.util.HashMap;
22 @@ -170,7 +171,11 @@
23 final File file = (File) key.getIdentifier();
24 try
26 - return file.toURL();
27 + return file.toURI().toURL();
28 + }
29 + catch (SecurityException e)
30 + {
31 + return null;
33 catch (MalformedURLException e)