jbarberan / beanio

Automatically exported from code.google.com/p/beanio
0 stars 0 forks source link

@Group annotation doesn't work properly for collection #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?  If applicable, please provide a
mapping configuration and sample record input to recreate the problem.

@Group
public class MyGroup {
@Group
Collection<SimpleGroup> list;
}

BeanIOConfigurationException is thrown: At least one record or group is required

Please provide any additional information below.
The problem is (I suppose) in type of annotated object identification.
I tried to specify group type using "type" group's annotation attribute, but it 
doesn't work also.

When I debugged source of beanio, I found that in createGroup() method:
updateTypeInfo(info, info.type, group.collection())

it should be:
updateTypeInfo(info, group.type(), group.collection())
like in other createXXX() methods

What version of BeanIO are you using? What JDK version?
2.1.0.M2

Original issue reported on code.google.com by Yuri.Bul...@gmail.com on 4 Feb 2014 at 4:41

GoogleCodeExporter commented 8 years ago
Good catch.  2.1.0 snapshot JAR attached.

Original comment by kevin.s...@gmail.com on 12 Feb 2014 at 3:56

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by kevin.s...@gmail.com on 7 Sep 2014 at 2:17