linghengqian commented on pull request #15260: URL: https://github.com/apache/shardingsphere/pull/15260#issuecomment-1035900247
- Traced to `org.apache.shardingsphere.infra.yaml.engine.constructor.ShardingSphereYamlConstructor`, there is a step in its constructor `YamlRuleConfigurationSwapperEngine.getYamlShortcuts().forEach((key, value) -> addTypeDescription(new TypeDescription(value, key))) ;` , at this step, generic information is lost due to post-compilation generic erasure. This causes `org.apache.shardingsphere.infra.yaml.engine.YamlEngine#unmarshal` to have an incorrect reference to it. What should be done to handle it? I still don't understand why this step is fine on `snakeyaml 1.16`, generic information should be additionally tagged. -  - The relevant class whose generics are erased is `org.apache.shardingsphere.infra.executor.sql.process.model.yaml.YamlExecuteProcessContext` . -  -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
