From 02aef1e531c4f274ebcb929cb5cee16c01a08cd4 Mon Sep 17 00:00:00 2001 From: beckerdo Date: Fri, 6 Mar 2009 16:49:42 +0000 Subject: TUSCANY-2871 ClassCastException using atom-abdera binding git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@750972 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/feed/AggregatorImpl.java | 19 +++++++++++++++---- .../src/main/resources/FeedAggregator.composite | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) (limited to 'branches/sca-java-1.x/samples/feed-aggregator/src/main') diff --git a/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java b/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java index 70e05b3bb3..7b2edb2e6a 100644 --- a/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java +++ b/branches/sca-java-1.x/samples/feed-aggregator/src/main/java/feed/AggregatorImpl.java @@ -85,22 +85,33 @@ public class AggregatorImpl implements org.apache.tuscany.sca.binding.atom.colle if (atomFeed1 != null) { try { entries.addAll(atomFeed1.getFeed().getEntries()); - } catch (Exception e) {} + } catch (Exception e) { + int x = 0; + } } if (atomFeed2 != null) { try { entries.addAll(atomFeed2.getFeed().getEntries()); - } catch (Exception e) {} + } catch (Exception e) { + int x = 0; + + } } if (rssFeed1 != null) { try { entries.addAll(atomFeed(rssFeed1.getFeed()).getEntries()); - } catch (Exception e) {} + } catch (Exception e) { + int x = 0; + + } } if (rssFeed2 != null) { try { entries.addAll(atomFeed(rssFeed2.getFeed()).getEntries()); - } catch (Exception e) {} + } catch (Exception e) { + int x = 0; + + } } // Sort entries by updated date diff --git a/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite b/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite index 8a3a53b4d5..c79df7fbd7 100644 --- a/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite +++ b/branches/sca-java-1.x/samples/feed-aggregator/src/main/resources/FeedAggregator.composite @@ -49,7 +49,7 @@ - + -- cgit v1.2.3