Revision: 17831
http://sourceforge.net/p/gate/code/17831
Author: ian_roberts
Date: 2014-04-15 09:37:23 +0000 (Tue, 15 Apr 2014)
Log Message:
-----------
Use single-argument Class.forName when loading the TLPP class in order to load
it through the Parser_Stanford plugin classloader instead of the top-level
GateClassLoader. Using the GCL causes errors if the Tagger_Stanford plugin was
loaded before the Parser_Stanford one, as then we try and load the concrete
class from the stanford JAR in the tagger plugin and then cast it to the
interface from the parser plugin.
Modified Paths:
--------------
gate/trunk/plugins/Parser_Stanford/src/gate/stanford/Parser.java
Modified: gate/trunk/plugins/Parser_Stanford/src/gate/stanford/Parser.java
===================================================================
--- gate/trunk/plugins/Parser_Stanford/src/gate/stanford/Parser.java
2014-04-15 01:22:40 UTC (rev 17830)
+++ gate/trunk/plugins/Parser_Stanford/src/gate/stanford/Parser.java
2014-04-15 09:37:23 UTC (rev 17831)
@@ -184,7 +184,7 @@
}
try {
Class<?> tlppClassObj =
- Class.forName(tlppClass, true, Gate.getClassLoader());
+ Class.forName(tlppClass);
if(!TreebankLangParserParams.class.isAssignableFrom(tlppClassObj)) {
throw new ResourceInstantiationException(tlppClassObj
+ " does not implement "
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs