[P2play-commit] SF.net SVN: p2play: [18] trunk/P2Play/src/org/p2play/resource/impl/ ByteArrayResour
Status: Pre-Alpha
Brought to you by:
tisoft
|
From: <ti...@us...> - 2007-01-16 13:11:13
|
Revision: 18
http://p2play.svn.sourceforge.net/p2play/?rev=18&view=rev
Author: tisoft
Date: 2007-01-16 05:11:11 -0800 (Tue, 16 Jan 2007)
Log Message:
-----------
fixed not serializable exception
Modified Paths:
--------------
trunk/P2Play/src/org/p2play/resource/impl/ByteArrayResource.java
Modified: trunk/P2Play/src/org/p2play/resource/impl/ByteArrayResource.java
===================================================================
--- trunk/P2Play/src/org/p2play/resource/impl/ByteArrayResource.java 2006-12-30 20:30:03 UTC (rev 17)
+++ trunk/P2Play/src/org/p2play/resource/impl/ByteArrayResource.java 2007-01-16 13:11:11 UTC (rev 18)
@@ -66,16 +66,15 @@
}
public PastContentHandle getHandle(final Past local) {
- return new PastContentHandle(){
-
+ final NodeHandle handle=local.getLocalNodeHandle();
+ return new PastContentHandle() {
public Id getId() {
- return id;
+ return ByteArrayResource.this.getId();
}
-
public NodeHandle getNodeHandle() {
- return local.getLocalNodeHandle();
- }};
- }
+ return handle;
+ }
+ }; }
public Id getId() {
return id;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|