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

solves #7044, refactor inner to outer for record #8197

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

homberghp
Copy link
Contributor

see issue #7044 for exact problem.

Start with adding tests.

Introduced RECORD and RECORD_COMPONENT case labels in multiple places.

Deal with method params for the record header in InnerOuterTransformer. The given way of printing the 'method parameters' for the record header include 'private final', producing illegal java code. The solution found might not be the moset elegant, but since the tree modifications will not persist into any real source code, it is acceptable. The solution strips private and final from the VARIABLE trees.

Delete file threw and unnecessary exception where a simple null test
suffices.


^Add meaningful description above

By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -

  • are all your own work, and you have the right to contribute them.
  • are contributed solely under the terms and conditions of the Apache License 2.0 (see section 5 of the license for more information).

Please make sure (eg. git log) that all commits have a valid name and email address for you in the Author field.

If you're a first time contributor, see the Contributing guidelines for more information.

If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.

see issue apache#7044 for exact problem.

Start with adding tests.

Introduced RECORD and RECORD_COMPONENT case labels in multiple places.

Deal with method params for the record header in InnerOuterTransformer.
The given way of printing the 'method parameters' for the record header
include 'private final', producing illegal java code.
The solution found might not be the moset elegant, but since the tree
modifications will not persist into any real source code, it is
acceptable. The solution strips `private` and `final` from the VARIABLE
trees.

Delete file threw and unnecessary exception where a simple null test
 suffices.
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) tests hints labels Jan 26, 2025
Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

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

did a quick pass and enabled some tests, next sync should run them.

@homberghp
Copy link
Contributor Author

homberghp commented Jan 27, 2025

Dear mbien, thank you for your time.

I just pushed to branch issue7044 on my fork.
Is there anything I need to do?

Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

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

I just pushed to branch issue7044 on my fork.
Is there anything I need to do?

thats all you have to do. Its an iterative process. The very last step before merge would be to squash as final touch - but that is for later.

Tests ran are green too - awesome. Left a few more comments.

@homberghp
Copy link
Contributor Author

homberghp commented Feb 3, 2025

removed lines as per
#8197 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hints Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) Need Squashing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor "Move Inner to Outer level" on record drops the record details
2 participants