Revision: 17896
http://sourceforge.net/p/gate/code/17896
Author: markagreenwood
Date: 2014-04-24 07:21:34 +0000 (Thu, 24 Apr 2014)
Log Message:
-----------
use the same classloader ID for both loading and compiling binary grammars,
otherwise we will leak like a sieve
Modified Paths:
--------------
gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/Transducer.java
Modified: gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/Transducer.java
===================================================================
--- gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/Transducer.java
2014-04-24 06:21:59 UTC (rev 17895)
+++ gate/trunk/plugins/JAPE_Plus/src/gate/jape/plus/Transducer.java
2014-04-24 07:21:34 UTC (rev 17896)
@@ -617,7 +617,7 @@
new GZIPInputStream(
new BufferedInputStream(binaryGrammarURL.openStream())));
singlePhaseTransducersData = (SPTData[])ois.readObject();
- classLoader =
Gate.getClassLoader().getDisposableClassLoader(binaryGrammarURL.toExternalForm()+System.currentTimeMillis(),true);
+ classLoader =
Gate.getClassLoader().getDisposableClassLoader(ois.toString(),true);
classLoaderRefCount.incrementAndGet();
}else if(grammarURL != null) {
classLoader =
Gate.getClassLoader().getDisposableClassLoader(grammarURL.toExternalForm()+System.currentTimeMillis(),true);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs