Skip to content

[http-client-java] codegen, ServiceVersion will be created multiple times when there are multiple clients #7734

Open
@haolingdong-msft

Description

@haolingdong-msft

Reproduce:
Use Communication.Messages to generate

Output:
There will be warning saying duplicate files found.
Image

Root cause:

service version are created multiple times in below part of code:

https://github.com/microsoft/typespec/blob/main/packages/http-client-java/generator/http-client-generator-core/src/main/java/com/microsoft/typespec/http/client/generator/core/Javagen.java#L216-L226

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:javaIssue for the Java client emitter: @typespec/http-client-java

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions