[testng] 147/355: fix for https://github.com/cbeust/testng/issues/602
Eugene Zhukov
eugene-guest at moszumanska.debian.org
Tue Aug 18 10:19:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
eugene-guest pushed a commit to annotated tag OpenBSD
in repository testng.
commit 82aaeb52d8e67397a5be6acc76444ac026083f3b
Author: Thomas Pasch <thomas.pasch at gmx.de>
Date: Thu Feb 5 14:24:30 2015 +0100
fix for https://github.com/cbeust/testng/issues/602
Signed-off-by: Thomas Pasch <thomas.pasch at gmx.de>
---
src/main/java/org/testng/internal/TestNGClassFinder.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/testng/internal/TestNGClassFinder.java b/src/main/java/org/testng/internal/TestNGClassFinder.java
index cca7352..8b94c25 100644
--- a/src/main/java/org/testng/internal/TestNGClassFinder.java
+++ b/src/main/java/org/testng/internal/TestNGClassFinder.java
@@ -56,7 +56,15 @@ public class TestNGClassFinder extends BaseClassFinder {
for (Class cls : allClasses) {
try {
if (null != cls) {
- for (Method m : cls.getMethods()) {
+ Method[] ms;
+ try {
+ ms = cls.getMethods();
+ } catch (NoClassDefFoundError e) {
+ // https://github.com/cbeust/testng/issues/602
+ ppp("Warning: Can't link and determine methods of " + cls);
+ ms = new Method[0];
+ }
+ for (Method m : ms) {
IAnnotation a = annotationFinder.findAnnotation(m,
org.testng.annotations.IObjectFactoryAnnotation.class);
if (null != a) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git
More information about the pkg-java-commits
mailing list