I've commited the introduction to CollectionValue/MetaType.
So you're now able to unwrap the Collection values as well.
| public void testCollectionUnwrap() throws Exception
| {
| Integer i1 = 123;
| Integer i2 = 123;
| checkCollection(new ArrayList<Integer>(), i1, i2);
| checkCollection(new HashSet<Integer>(), i1, i2);
|
| TestEnum one = TestEnum.ONE;
| TestEnum two = TestEnum.TWO;
| TestEnum three = TestEnum.THREE;
| checkCollection(new ArrayList<TestEnum>(), one, two, three, one);
| checkCollection(new HashSet<TestEnum>(), one, two, three, one);
|
| TestGeneric g1 = new TestGeneric("123");
| TestGeneric g2 = new TestGeneric("123");
| checkCollection(new ArrayList<TestGeneric>(), g1, g2);
| checkCollection(new HashSet<TestGeneric>(), g1, g2);
|
| TestSimpleComposite c1 = new TestSimpleComposite("123");
| TestSimpleComposite c2 = new TestSimpleComposite("123");
| checkCollection(new ArrayList<TestSimpleComposite>(), c1, c2);
| checkCollection(new HashSet<TestSimpleComposite>(), c1, c2);
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111410#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...