pjfanning commented on PR #1024: URL: https://github.com/apache/pekko-connectors/pull/1024#issuecomment-2764527738
Our code looks like ``` public static void populateDatabase(InfluxDB influxDB, Class<?> clazz) throws Exception { InfluxDBMapper influxDBMapper = new InfluxDBMapper(influxDB); Constructor<?> cons = clazz.getConstructor( Instant.class, String.class, String.class, Double.class, Boolean.class, Long.class); Object firstCore = cons.newInstance( Instant.now().minusSeconds(1000), "local_1", "eu-west-2", 1.4d, true, 123l); influxDBMapper.save(firstCore); Object secondCore = cons.newInstance(Instant.now().minusSeconds(500), "local_2", "eu-west-2", 1.4d, true, 123l); influxDBMapper.save(secondCore); } ``` The save call now fails. It does not look like a good idea for us to be using Java reflection here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org