Niclas Hedhman wrote:
On Sat, Oct 3, 2009 at 3:58 PM, Georg Ragaller <[email protected]> wrote:
Niclas Hedhman wrote:

Thanks for quick response! I hope you guys sleep some times!! :-)

The change should be in qi4j-core now. Can you verify?


Cheers
I've modified the core/src/test/java/org/qi4j/api/value/ValueTypeSerializationTest.java in qi4j-tests to
include a property with an explicit property type, patch is attached.

Cheers,
Georg


>From 7bf3920958602eebfc6130a4d6eab358b476abcb Mon Sep 17 00:00:00 2001
From: Georg Ragaller <[email protected]>
Date: Sun, 4 Oct 2009 18:38:22 +0200
Subject: [PATCH] added explicit property to value composite, see thread 
http://lists.ops4j.org/pipermail/qi4j-dev/2009-October/006013.html

---
 .../qi4j/api/value/ValueTypeSerializationTest.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git 
a/core/src/test/java/org/qi4j/api/value/ValueTypeSerializationTest.java 
b/core/src/test/java/org/qi4j/api/value/ValueTypeSerializationTest.java
index 53acd2e..835efc0 100644
--- a/core/src/test/java/org/qi4j/api/value/ValueTypeSerializationTest.java
+++ b/core/src/test/java/org/qi4j/api/value/ValueTypeSerializationTest.java
@@ -68,6 +68,7 @@ public class ValueTypeSerializationTest extends 
AbstractQi4jTest
         proto.another().set(valueBuilder.newInstance());
         proto.serializable().set(new SerializableObject());
         proto.fooValue().set(valueBuilderFactory.newValue(FooValue.class));
+        proto.explicit().set( "foobar" );
         SomeValue some = builder.newInstance();
 
         String json = some.toJSON();
@@ -106,6 +107,10 @@ public class ValueTypeSerializationTest extends 
AbstractQi4jTest
         somevalue, anothervalue
     }
 
+    public interface ExplicitPropertyType extends Property<String>
+    {
+    }
+    
     public interface SomeValue extends ValueComposite
     {
         Property<String> string();
@@ -140,6 +145,8 @@ public class ValueTypeSerializationTest extends 
AbstractQi4jTest
         Property<Object> serializable();
 
         Property<Foo> fooValue();
+        
+        ExplicitPropertyType explicit();
 
 /* Too complicated to do generics here for now
         Property<SpecificCollection> specificCollection();
-- 
1.6.1.2

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to