Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main/java/org/embulk/util/config/Compat.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ private static Optional<String> callToJsonIfAvailable(final DataSource source) {
private static ObjectNode callGetObjectNodeAndRebuildIfAvailable(final DataSource source, final ObjectMapper mapper) {
final Class<? extends DataSource> coreDataSourceImplClass = source.getClass();
if (!coreDataSourceImplClass.getCanonicalName().equals("org.embulk.config.DataSourceImpl")) {
throw new ClassCastException("DataSource specified is not org.embulk.config.DataSourceImpl.");
throw new ClassCastException(
"DataSource specified is not org.embulk.config.DataSourceImpl. "
+ "The DataSource instance is unexpected to implement getObjectNode(). "
+ "DataSource class: " + source.getClass());
}
final Method getObjectNode = getGetObjectNodeMethod(coreDataSourceImplClass);
if (getObjectNode == null) {
Expand Down