Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: http-client-java, support Client / SubClient in different package #5543

Open
4 tasks done
weidongxu-microsoft opened this issue Jan 9, 2025 · 0 comments
Open
4 tasks done
Assignees
Labels
bug Something isn't working emitter:client:java Issue for the Java client emitter: @typespec/http-client-java

Comments

@weidongxu-microsoft
Copy link
Contributor

Describe the bug

https://github.com/allenjzhang/typespec-e2e-demo/blob/cd13f41abb54bb86f80eeabfdefb1e48e3e59321/todoApp/spec/main.tsp

There is nested namespace that contains operations.
It would result in Client / SubClient in a different Java package.

Currently the Client in Java is initialized via package private constructor, hence the Client and SubClient be in same package.

Reproduction

https://github.com/allenjzhang/typespec-e2e-demo/blob/cd13f41abb54bb86f80eeabfdefb1e48e3e59321/todoApp/spec/main.tsp

Checklist

@weidongxu-microsoft weidongxu-microsoft added bug Something isn't working emitter:client:java Issue for the Java client emitter: @typespec/http-client-java labels Jan 9, 2025
@weidongxu-microsoft weidongxu-microsoft self-assigned this Jan 9, 2025
@weidongxu-microsoft weidongxu-microsoft changed the title [Bug]: http-client-java, support client/subclient in different package [Bug]: http-client-java, support Client / SubClient in different package Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working emitter:client:java Issue for the Java client emitter: @typespec/http-client-java
Projects
None yet
Development

No branches or pull requests

1 participant