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

[CBRD-25297] building Java type import list at code generation stage #5133

Merged
merged 5 commits into from
Apr 26, 2024

Conversation

hyunikn
Copy link
Contributor

@hyunikn hyunikn commented Apr 17, 2024

http://jira.cubrid.org/browse/CBRD-25297

. building Java type import list in earlier stages of compilation has been the cause of omitting required Java type imports by mistake. It should be near the Java code generated.
. a small update irrelevant to this issue is applied: semantic error "not supported yet" on autonomous transaction pragma.

@hyunikn hyunikn self-assigned this Apr 17, 2024
@hyunikn hyunikn requested review from hgryoo, beyondykk9 and ctshim April 17, 2024 10:43
@@ -44,11 +44,28 @@

public class JavaCodeWriter extends AstVisitor<JavaCodeWriter.CodeToResolve> {

private Set<String> javaTypesUsed = new HashSet<>();

private void addToImports(String fullJavaType) {}
Copy link
Contributor

@beyondykk9 beyondykk9 Apr 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just dummy method? It looks better to remove the method if it would be used any more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is unused code and should be removed.
Thank you.

@hyunikn hyunikn merged commit edc0ec4 into CUBRID:develop Apr 26, 2024
9 checks passed
@hyunikn hyunikn deleted the CBRD-25297-refactor-import-list branch April 26, 2024 05:14
YeunjunLee pushed a commit that referenced this pull request Jun 4, 2024
…5133)

* [refactoring] collect Java types to import during the code generation stage rather than earlier stages

* [refactoring] removed old code of building Java type import list

* minor: raise a semantic error "not supported yet" on AUTONOMOUS_TRANSACTION pragma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants