You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2012/06/28 02:35:40 UTC

svn commit: r1354785 - in /pig/trunk: CHANGES.txt src/org/apache/pig/impl/PigContext.java

Author: daijy
Date: Thu Jun 28 00:35:39 2012
New Revision: 1354785

URL: http://svn.apache.org/viewvc?rev=1354785&view=rev
Log:
PIG-2775: Register jar does not goes to classpath in some cases

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/src/org/apache/pig/impl/PigContext.java

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1354785&r1=1354784&r2=1354785&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Thu Jun 28 00:35:39 2012
@@ -600,6 +600,8 @@ Release 0.9.3 - Unreleased
 
 BUG FIXES
 
+PIG-2775: Register jar does not goes to classpath in some cases (daijy)
+
 PIG-2693: LoadFunc.setLocation should be called before LoadMetadata.getStatistics (billgraham via julien)
 
 PIG-2666: LoadFunc.setLocation() is not called when pig script only has Order By (daijy)

Modified: pig/trunk/src/org/apache/pig/impl/PigContext.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/impl/PigContext.java?rev=1354785&r1=1354784&r2=1354785&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/impl/PigContext.java (original)
+++ pig/trunk/src/org/apache/pig/impl/PigContext.java Thu Jun 28 00:35:39 2012
@@ -273,6 +273,7 @@ public class PigContext implements Seria
         if (resource != null) {
             extraJars.add(resource);
             PigContext.classloader = createCl(null);
+            Thread.currentThread().setContextClassLoader(PigContext.classloader);
         }
     }