Description
If we have the following in the component configuration:
@UriParam(javaType = "java.time.Duration", defaultValue = "10s") private Long writeTimeoutMillis = 100L;
Here the field is long, but the javaType being overiden to java.time.Duration with default value 10s. And then will be converted to Duration in the generated configurer.
However in the spring boot maven plugin, when it generates the spring boot starter component configuration, the logic is not fully adopted, for example, it will take the default value of 10s and it will assign it to the long type field, e.g:
private Long writeTimeoutMillis = 10sL;
Which as result it will produce compilation errors.
Attachments
Issue Links
- is related to
-
CAMEL-15130 camel-debezium - Source code generated for configurations needs to consider durations instead of long for time related fields
- Resolved