You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/10/17 08:25:25 UTC

svn commit: r705490 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java

Author: jdillon
Date: Thu Oct 16 23:25:25 2008
New Revision: 705490

URL: http://svn.apache.org/viewvc?rev=705490&view=rev
Log:
Fixed de-serialization of ClassPathImpl records

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java?rev=705490&r1=705489&r2=705490&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java (original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java Thu Oct 16 23:25:25 2008
@@ -164,7 +164,7 @@
         ClassPath classPath;
         XStoreRecord record = xstore.resolveRecord(artifact.getGroupId() + "/" + artifact.getArtifactId() + "/classpath.xml"); // FIXME: Get state directory from application/branding
         if (record.exists()) {
-            classPath = record.get(ClassPath.class);
+            classPath = record.get(ClassPathImpl.class);
             log.debug("Loaded classpath from cache: {}", record);
         }
         else {
@@ -173,6 +173,7 @@
             log.debug("Saving classpath to cache: {}", record);
             record.set(classPath);
         }
+        record.close();
         
         if (log.isDebugEnabled()) {
             log.debug("Plugin classpath:");