Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Replace default argument value with a no-args constructor #32

Merged
merged 1 commit into from
Jun 26, 2019

Conversation

rb3ckers
Copy link
Contributor

Loading reporters from the configuration file uses Java reflection to instatiate the reporter with its no-args constructor. No such constructor was generated for InfluxDBReporter (the default argument value doesn’t generate one).

With version 1.0.2 of the InfluxDBReporter I get this exception when enabling it via the configuration:
java.lang.NoSuchMethodException: kamon.influxdb.InfluxDBReporter.<init>().

Loading reporters from the configuration file uses Java reflection to instatiate the reporter with its no-args constructor. No such constructor was generated for `InfluxDBReporter` (the default argument value doesn’t generate one).
@ivantopo ivantopo merged commit 1a0d57b into kamon-io:master Jun 26, 2019
@ivantopo
Copy link
Contributor

@rb3ckers thanks a lot for this PR! It totally went off my radar, same as your other PR. Will release both changes asap!

@rb3ckers
Copy link
Contributor Author

Thanks. No problem though. We were already running with the forked version. Though it is nice to be able to drop the fork again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants