[Jiemamy-notify] commit [2052] コミット漏れ。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 10月 27日 (月) 02:29:00 JST


Revision: 2052
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jiemamy&view=rev&rev=2052
Author:   daisuke_m
Date:     2008-10-27 02:29:00 +0900 (Mon, 27 Oct 2008)

Log Message:
-----------
コミット漏れ。

Modified Paths:
--------------
    artemis/trunk/org.jiemamy.serializer/src/main/java/org/jiemamy/serializer/ModelInputStream.java


-------------- next part --------------
Modified: artemis/trunk/org.jiemamy.serializer/src/main/java/org/jiemamy/serializer/ModelInputStream.java
===================================================================
--- artemis/trunk/org.jiemamy.serializer/src/main/java/org/jiemamy/serializer/ModelInputStream.java	2008-10-26 17:27:42 UTC (rev 2051)
+++ artemis/trunk/org.jiemamy.serializer/src/main/java/org/jiemamy/serializer/ModelInputStream.java	2008-10-26 17:29:00 UTC (rev 2052)
@@ -23,6 +23,8 @@
 import java.util.Queue;
 import java.util.concurrent.LinkedBlockingQueue;
 
+import org.xml.sax.SAXException;
+
 import org.jiemamy.spec.model.RootModel;
 
 /**
@@ -63,8 +65,12 @@
 	@Override
 	public int read() throws IOException {
 		if (resourceQueue.size() == 0) {
-			if (modelWriter.write() == false) {
-				return -1;
+			try {
+				if (modelWriter.write() == false) {
+					return -1;
+				}
+			} catch (SAXException e) {
+				throw new IOException();
 			}
 		}
 		return resourceQueue.poll().intValue();


Jiemamy-notify メーリングリストの案内
Back to archive index