From b82a8cc5f8178a0cf222db7682df6db1c56051c0 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 2 Apr 2014 07:43:15 +0200 Subject: change stork2-commons to allow Java 1.6 builds --- id/server/stork2-commons/pom.xml | 4 ++-- .../eu/stork/peps/tests/ComplexAttributesMarshalling.java | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'id/server/stork2-commons') diff --git a/id/server/stork2-commons/pom.xml b/id/server/stork2-commons/pom.xml index b13035307..c1dd27924 100644 --- a/id/server/stork2-commons/pom.xml +++ b/id/server/stork2-commons/pom.xml @@ -122,8 +122,8 @@ maven-compiler-plugin 3.1 - 1.7 - 1.7 + 1.6 + 1.6 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(); + } } /** -- cgit v1.2.3