You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by pr...@apache.org on 2016/03/02 10:53:50 UTC

lens git commit: LENS-980: Creating examples is failing on master

Repository: lens
Updated Branches:
  refs/heads/master a57426e4b -> 4f00c11b4


LENS-980: Creating examples is failing on master


Project: http://git-wip-us.apache.org/repos/asf/lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/lens/commit/4f00c11b
Tree: http://git-wip-us.apache.org/repos/asf/lens/tree/4f00c11b
Diff: http://git-wip-us.apache.org/repos/asf/lens/diff/4f00c11b

Branch: refs/heads/master
Commit: 4f00c11b49a46a97420a4d1617653c14e0002535
Parents: a57426e
Author: Amareshwari Sriramadasu <am...@gmail.com>
Authored: Wed Mar 2 15:13:04 2016 +0530
Committer: Rajat Khandelwal <ra...@gmail.com>
Committed: Wed Mar 2 15:13:04 2016 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/lens/api/jaxb/LensJAXBContext.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lens/blob/4f00c11b/lens-api/src/main/java/org/apache/lens/api/jaxb/LensJAXBContext.java
----------------------------------------------------------------------
diff --git a/lens-api/src/main/java/org/apache/lens/api/jaxb/LensJAXBContext.java b/lens-api/src/main/java/org/apache/lens/api/jaxb/LensJAXBContext.java
index e517c92..14fc4aa 100644
--- a/lens-api/src/main/java/org/apache/lens/api/jaxb/LensJAXBContext.java
+++ b/lens-api/src/main/java/org/apache/lens/api/jaxb/LensJAXBContext.java
@@ -120,7 +120,7 @@ public class LensJAXBContext extends JAXBContext {
       return ((JAXBElement<T>) UNMARSHALLER.unmarshal(file)).getValue();
     } else {
       // load from classpath
-      InputStream stream = LensJAXBContext.class.getResourceAsStream(filename);
+      InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(filename);
       if (stream == null) {
         throw new IOException("File not found:" + filename);
       }