changeset 24:ae86706cab66

error fix
author one
date Thu, 15 Jan 2015 10:00:24 +0900
parents 770269200a60
children ca85609658bd
files src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/bbs/JungleBulletinBoard.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/bbs/JungleBulletinBoard.java	Sun Dec 07 12:07:55 2014 +0900
+++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/bbs/JungleBulletinBoard.java	Thu Jan 15 10:00:24 2015 +0900
@@ -141,9 +141,9 @@
 			editor = either.b();
 		} while (editor.success().isA());*/
 			
-			editor = editor.putAttribute(path.add(0),"author", ByteBuffer.wrap(_author.getBytes())).b();
-			editor = editor.putAttribute(path.add(0),"key", ByteBuffer.wrap(_editKey.getBytes())).b();
-			either = editor.putAttribute(path.add(0),"mes", ByteBuffer.wrap(_message.getBytes()));
+			editor = editor.putAttribute(path.add(size),"author", ByteBuffer.wrap(_author.getBytes())).b();
+			editor = editor.putAttribute(path.add(size),"key", ByteBuffer.wrap(_editKey.getBytes())).b();
+			either = editor.putAttribute(path.add(size),"mes", ByteBuffer.wrap(_message.getBytes()));
 			
 			if (either.isA()) {
 				throw new IllegalStateException();
@@ -179,9 +179,9 @@
 			editor = either.b();
 		} while (editor.success().isA());*/
 			
-			editor = editor.putAttribute(path.add(0),"author", ByteBuffer.wrap(_author.getBytes())).b();
-			editor = editor.putAttribute(path.add(0),"key", ByteBuffer.wrap(_editKey.getBytes())).b();
-			Either<Error, JungleTreeEditor> either = editor.putAttribute(path.add(0),"mes", ByteBuffer.wrap(_message.getBytes()));
+			editor = editor.putAttribute(path,"author", ByteBuffer.wrap(_author.getBytes())).b();
+			editor = editor.putAttribute(path,"key", ByteBuffer.wrap(_editKey.getBytes())).b();
+			Either<Error, JungleTreeEditor> either = editor.putAttribute(path,"mes", ByteBuffer.wrap(_message.getBytes()));
 			
 			if (either.isA()) {
 				throw new IllegalStateException();