aboutsummaryrefslogtreecommitdiff
path: root/id/server/stork2-commons/src
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-04-02 07:43:15 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-04-02 07:43:15 +0200
commitb82a8cc5f8178a0cf222db7682df6db1c56051c0 (patch)
tree120c13d30824eca297664835e05677f43cc1868d /id/server/stork2-commons/src
parent3395f06b54249ad4f8281e45ef93d97540bb7a7a (diff)
downloadmoa-id-spss-b82a8cc5f8178a0cf222db7682df6db1c56051c0.tar.gz
moa-id-spss-b82a8cc5f8178a0cf222db7682df6db1c56051c0.tar.bz2
moa-id-spss-b82a8cc5f8178a0cf222db7682df6db1c56051c0.zip
change stork2-commons to allow Java 1.6 builds
Diffstat (limited to 'id/server/stork2-commons/src')
-rw-r--r--id/server/stork2-commons/src/test/java/eu/stork/peps/tests/ComplexAttributesMarshalling.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/id/server/stork2-commons/src/test/java/eu/stork/peps/tests/ComplexAttributesMarshalling.java b/id/server/stork2-commons/src/test/java/eu/stork/peps/tests/ComplexAttributesMarshalling.java
index c7e195fa6..d411a2f42 100644
--- a/id/server/stork2-commons/src/test/java/eu/stork/peps/tests/ComplexAttributesMarshalling.java
+++ b/id/server/stork2-commons/src/test/java/eu/stork/peps/tests/ComplexAttributesMarshalling.java
@@ -88,10 +88,15 @@ public class ComplexAttributesMarshalling {
m.marshal(objf.createCanonicalResidenceAddress(object), new FileOutputStream("CanonicalAddressType.xml"));
m.marshal(objf.createCanonicalResidenceAddress(object), System.out);
}
- catch (JAXBException | FileNotFoundException e)
+ catch (JAXBException e )
{
e.printStackTrace();
+
+ } catch (FileNotFoundException e) {
+ e.printStackTrace();
+
}
+
}
/**
@@ -156,8 +161,14 @@ public class ComplexAttributesMarshalling {
m.marshal(o.createHasAccountInBank(object), new FileOutputStream ("hasbankaccount.xml"));
m.marshal(o.createHasAccountInBank(object), System.out);
- } catch (JAXBException | FileNotFoundException e) {
+ }
+ catch (JAXBException e )
+ {
+ e.printStackTrace();
+
+ } catch (FileNotFoundException e) {
e.printStackTrace();
+
}
}
/**