commit 617fe17798a99aafdc78a61da0a4b66ae205a816
Author: Cristiano Gaviao <[email protected]>
AuthorDate: Sun, 26 May 2013 10:07:38 -0300
Commit: Cristiano Gaviao <[email protected]>
CommitDate: Sun, 26 May 2013 10:07:38 -0300
fixed LoadFromBundleClassPath
diff --git
a/jbehave-osgi-bundles/org.jbehave.osgi.core/src/main/java/org/jbehave/osgi/core/io/LoadFromBundleClasspath.java
b/jbehave-osgi-bundles/org.jbehave.osgi.core/src/main/java/org/jbehave/osgi/core/io/LoadFromBundleClasspath.java
index 4206f1d..45eff44 100644
---
a/jbehave-osgi-bundles/org.jbehave.osgi.core/src/main/java/org/jbehave/osgi/core/io/LoadFromBundleClasspath.java
+++
b/jbehave-osgi-bundles/org.jbehave.osgi.core/src/main/java/org/jbehave/osgi/core/io/LoadFromBundleClasspath.java
@@ -21,7 +21,7 @@ public class LoadFromBundleClasspath extends
LoadFromClasspath {
}
protected InputStream resourceAsStream(String resourcePath) {
- InputStream stream =
this.getClass().getClassLoader().getResourceAsStream(resourcePath);
+ InputStream stream = classLoader.getResourceAsStream(resourcePath);
if (stream == null) {
throw new StoryResourceNotFound(resourcePath, classLoader);
}