Skip to content

does not works with java 17 #12

Description

@dimitriy-k

please update to the latest swagger-codegen, where they fixed the issue:

swagger-api/swagger-codegen#10966

it gives now error:

Caused by: com.github.jknack.handlebars.HandlebarsException: /handlebars/typescript-angular/licenseInfo.mustache:2:6: java.lang.reflect.InaccessibleObjectException: Unable to make public boolean java.util.Collections$EmptyMap.isEmpty() accessible: module java.base does not "opens java.util" to unnamed module @3c60b7e7

to fix it, I have to call it now with extra options:

`_JAVA_OPTIONS="--add-opens=java.base/java.util=ALL-UNNAMED" swagger-codegen-cli generate ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions