The Javadoc for Record.getValue(Field<T>) states:
  Throws: IllegalArgumentException - If the argument field is not contained 
in fieldsRow()

This is not quite true.  If the method is called with a Field that is not 
contained but has the same name as a field that is contained, the contained 
field's value will be returned instead of throwing an exception.

Example:

* record contains the Field FOO.ID only
* clients calls record.getValue(BAR.ID)
* record returns the value associated with FOO.ID

I would argue that this is unwanted behavior for TableFields, in that it 
hides a likely client bug.  I would prefer to see the client bug exposed 
through an exception versus continued behavior with a possibly bogus value. 
 Does anyone prefer the existing behavior?

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to