You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Rationale
Claude had some late-breaking suggestions for record binding, primarily
if validate() is implemented (not currently, but could be added in the
future) then propagating new Object() as the target would result in a
ClassCastException.
Note that, if a record is used, getView() in the reshow case needs to
handle a null target.
## Related Pull Requests
- #7837
Copy file name to clipboardExpand all lines: api/src/org/labkey/api/data/RecordFactory.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ public RecordFactory(Class<K> clazz)
75
75
}
76
76
catch (ConversionExceptione)
77
77
{
78
-
thrownewIllegalArgumentException("Failed to convert property value of type '" + value.getClass().getName() + "' to required type '" + p.getType() + "' for property '" + p.getName() + "'; " + e.getMessage());
78
+
thrownewIllegalArgumentException("Failed to convert property value of type '" + value.getClass().getName() + "' to required type '" + p.getType().getName() + "' for property '" + p.getName() + "'; " + e.getMessage());
79
79
}
80
80
}).toArray();
81
81
@@ -95,7 +95,7 @@ public RecordFactory(Class<K> clazz)
95
95
throwe; // Unclear what the problem is, so just re-throw
96
96
if (missingPrimitiveParameters.size() == 1)
97
97
thrownewIllegalArgumentException("Primitive parameter \"" + missingPrimitiveParameters.getFirst() + "\" is required");
98
-
thrownewIllegalArgumentException("One or more primitive parameters are missing. Primitive parameters include: " + missingPrimitiveParameters);
98
+
thrownewIllegalArgumentException("Primitive parameters are missing: " + missingPrimitiveParameters);
0 commit comments