From 7e1c6c18f86bbdb92a35f33bcc38fe3aad9986a0 Mon Sep 17 00:00:00 2001 From: jvanzyl Date: Sun, 24 Mar 2002 15:50:00 +0000 Subject: [PATCH] Adding fix so that the directed graph impl is not 1.4 specific and filtering inner classes out of the tests. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/sandbox/graph2/trunk@144600 13f79535-47bb-0310-9956-ffa450edef68 --- project.xml | 5 ++--- .../apache/commons/graph/impl/DirectedGraphImpl.java | 11 ++++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/project.xml b/project.xml index 4c43321..2d4406d 100644 --- a/project.xml +++ b/project.xml @@ -82,9 +82,8 @@ - - exclude = **/*.class - + include = **/*Test*.class + exclude = **/*$*.class diff --git a/src/java/org/apache/commons/graph/impl/DirectedGraphImpl.java b/src/java/org/apache/commons/graph/impl/DirectedGraphImpl.java index df9ee46..513add0 100644 --- a/src/java/org/apache/commons/graph/impl/DirectedGraphImpl.java +++ b/src/java/org/apache/commons/graph/impl/DirectedGraphImpl.java @@ -452,16 +452,13 @@ public class DirectedGraphImpl Object args[]) throws Throwable { - try + try { return method.invoke(this, args); - } - catch (InvocationTargetException ex) + } + catch (InvocationTargetException ex) { - //!! David can fix this, this needs to run on 1.3 - return null; - //throw ex.getCause(); + throw ex.getTargetException(); } } - }