pradeepsjsu / beanio

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

Throwing exception when no record class is defined #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?  If applicable, please provide a
mapping configuration and sample record input to recreate the problem.
1. Create a BeanIo configuration file with a "classless" record

What is the expected output? What do you see instead?
BeanIo returns a null record instead of notifying or throwing an exception

What version of BeanIO are you using? What JDK version?
BeanIO 1.2.2 - JDK 1.6

Please provide any additional information below.
class:  org.beanio.parser.BeanDefinition
method: Object parsePropertyValue(Record)
line:   107

Original issue reported on code.google.com by mikhas.rock on 13 Jan 2012 at 5:57

GoogleCodeExporter commented 9 years ago
Hi Mikhas, this is actually by design and is documented in section A.11 (class 
attribute) of the reference guide.  This allows BeanIO to be used to validate 
records (or even an entire file) without having to instantiate beans for every 
record.

Original comment by kevin.s...@gmail.com on 14 Jan 2012 at 3:25