OSDN Git Service

xerial-core-1.0.4
authorleo <leo@ae02f08e-27ec-0310-ae8c-8ba02fe2eafd>
Mon, 27 Apr 2009 09:12:19 +0000 (09:12 +0000)
committerleo <leo@ae02f08e-27ec-0310-ae8c-8ba02fe2eafd>
Mon, 27 Apr 2009 09:12:19 +0000 (09:12 +0000)
 * SilkStreamReader
 * SilkFormat and appender support in BeanUtil

git-svn-id: http://www.xerial.org/svn/project/XerialJ/trunk/xerial-core@3263 ae02f08e-27ec-0310-ae8c-8ba02fe2eafd

pom.xml
src/main/java/org/xerial/silk/SilkPullParser.java
src/main/java/org/xerial/util/bean/impl/BeanBindingProcess.java

diff --git a/pom.xml b/pom.xml
index 6c57883..565c317 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
   <groupId>org.xerial</groupId>
   <artifactId>xerial-core</artifactId>
   <name>Xerial Core</name>
-  <version>1.0.3-SNAPSHOT</version>
+  <version>1.0.4</version>
   <description>Xerial Core: standard utilities for XerialJ project</description>
 
   <build>
index 342ec3f..f4cfd11 100644 (file)
@@ -129,6 +129,7 @@ public class SilkPullParser
         {
             parser.parse(this);
             foundEOF = true;
+            threadPool.shutdownNow();
             return true;
         }
 
@@ -142,7 +143,9 @@ public class SilkPullParser
             return true;
 
         if (foundEOF)
+        {
             return !eventQueue.isEmpty();
+        }
 
         fetchNext();
 
@@ -157,8 +160,6 @@ public class SilkPullParser
         if (foundEOF)
             return eventQueue.poll();
 
-        fetchNext();
-
         return next();
     }
 
index 10f4642..a4f51e2 100644 (file)
@@ -524,7 +524,12 @@ public class BeanBindingProcess implements TreeVisitor
         }
         catch (InvocationTargetException e)
         {
-            throw new BeanException(BeanErrorCode.InvocationTargetException, e);
+            Throwable cause = e.getCause();
+            if (cause == null)
+                throw new BeanException(BeanErrorCode.InvocationTargetException, String.format(
+                        "node=%s, value=%s, updator=%s", nodeStack.getLast(), value, updator.getMethod().getName()));
+            else
+                throw new BeanException(BeanErrorCode.InvocationTargetException, cause);
         }
 
     }