fix(v0.11): 第七轮走查——过滤器异常透传、Kafka 生产者泛型与反射实例化

- CloudwalkContextParameterFilter:去掉对 chain.doFilter 的吞异常 catch,仅 finally 清理 Session,避免下游错误被静默吞掉。
- KafkaProducter:KafkaProducer/ProducerRecord 使用 String 泛型;send 遇 InterruptedException 时恢复中断标志。
- BeanCopyUtils、ServerIdStrategyBeanConfig:newInstance 改为 getDeclaredConstructor().newInstance()。

对应 docs/reviews 05 中 P1;maven-cloudwalk-legacy-public 已全量 compile 通过。

Made-with: Cursor
This commit is contained in:
反编译工作区
2026-04-25 00:18:52 +08:00
parent 2d9fa1c9de
commit ef030407c0
4 changed files with 9 additions and 13 deletions
@@ -32,7 +32,7 @@ ServerIdStrategyEnum.getServerIdStrategyEnum(serialProperties.getServerIdStrateg
beanClassName = Class.forName(ServerIdStrategyEnum.getServerIdStrategyEnum(serialProperties.getServerIdStrategy().getCode()).getBeanName());
}
}
return (ServerIdStrategy)beanClassName.newInstance();
return (ServerIdStrategy)beanClassName.getDeclaredConstructor().newInstance();
} catch (Exception e) {
throw new RuntimeException(e);
}