alibaba / cloud-native-app-initializer

Cloud Native App Initializer is committed to providing developers with a simpler and more efficient project construction experience in the current cloud-native era.
https://start.aliyun.com
Apache License 2.0
252 stars 90 forks source link

DependencyOfDependencyDescriptionCustomizer 点击预览代码时报出异常 #75

Closed fulln closed 1 year ago

fulln commented 1 year ago

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。 We recommend using English. If you are non-native English speaker, you can use the translation software.

Describe the bug 点击预览代码的时候提示异常,

To Reproduce Steps to reproduce the behavior: jdk 版本: 1.8

  1. 点击预览代码
  2. 看到 com.alibaba.initializer.generation.extension.dependency.DependencyOfDependencyDescriptionCustomizer#customize 中foreach报错

Expected behavior 正常的添加dependecines Screenshots If applicable, add screenshots to help explain your problem.

image

在这个getRequestedDependencies 的keyset进行for循环,在下面很明显看到有添加element的操作,导致map的modcount异常

Additional context Add any other context about the problem here. e.g. start.aliyun.com website or open source version

steverao commented 1 year ago

当前要求的运行环境为JDK17,项目中使用了一些JDK17才支持的语法,在JDK8环境下编译会报错的你是怎么在相关环境下运行的呢?

fulln commented 1 year ago

当前要求的运行环境为JDK17,项目中使用了一些JDK17才支持的语法,在JDK8环境下编译会报错的你是怎么在相关环境下运行的呢?

为了接入其他的开源项目的工程,手动调整了代码中17的语法。现在用jdk 17 没有复现。先关闭了