Revision: 20027 http://sourceforge.net/p/gate/code/20027 Author: markagreenwood Date: 2017-01-31 12:39:36 +0000 (Tue, 31 Jan 2017) Log Message: ----------- fix a cast that still assumed URLs were being used
Modified Paths: -------------- gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/gui/jape/JapeViewer.java Modified: gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/gui/jape/JapeViewer.java =================================================================== --- gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/gui/jape/JapeViewer.java 2017-01-31 12:35:53 UTC (rev 20026) +++ gate/branches/sawdust2/plugins/ANNIE/src/main/java/gate/gui/jape/JapeViewer.java 2017-01-31 12:39:36 UTC (rev 20027) @@ -123,14 +123,12 @@ if(e.getPath().getLastPathComponent() == null) return; try { - readJAPEFileContents(new URL((URL)transducer.getParameterValue("grammarURL"), e.getPath() + readJAPEFileContents(new URL(((ResourceReference)transducer.getParameterValue("grammarURL")).toURL(), e.getPath() .getLastPathComponent() + ".jape")); } - catch(MalformedURLException mue) { - mue.printStackTrace(); - } catch(ResourceInstantiationException rie) { - rie.printStackTrace(); + catch(IOException | ResourceInstantiationException ioe) { + ioe.printStackTrace(); } } }); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs