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

improve type annotations handling #205

Merged
merged 2 commits into from
May 26, 2022

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented May 24, 2022

This includes several things:

  • Type.toString() no longer shows type annotations before a package name,
    because package names can't be annotated;
  • type annotations on types that are local classes are supported properly;
  • type annotations on outermost annotable types are supported properly.

Fixes #161.

@Ladicek Ladicek added this to the 3.0.0 milestone May 24, 2022
@Ladicek
Copy link
Contributor Author

Ladicek commented May 24, 2022

I need to add a few more test cases, because type annotations are WEIRD. But after many failed attempts, I feel like I finally found a decent solution, yay!

@Ladicek Ladicek force-pushed the type-annotations-fixes branch from 2b81a28 to bcde530 Compare May 25, 2022 16:19
@Ladicek
Copy link
Contributor Author

Ladicek commented May 25, 2022

Tests added, this should be good to go now. Assuming tests pass -- I've seen the Calcite regression test failing and will likely have to investigate that.

@Ladicek
Copy link
Contributor Author

Ladicek commented May 26, 2022

Fixed a stupid NPE, the Calcite regression test should pass now.

@Ladicek
Copy link
Contributor Author

Ladicek commented May 26, 2022

The Calcite regression tests still fails, but I can no longer reproduce the failure locally. When I download the calcite-work archive and try to index one of the classes reported as failing, it works just fine. Probably some caching somewhere :-/

@Ladicek
Copy link
Contributor Author

Ladicek commented May 26, 2022

Configuring the Gradle action to not cache Jandex artifacts in the Calcite regression test helped :-)

@Ladicek Ladicek force-pushed the type-annotations-fixes branch from c286063 to 7c0bbc5 Compare May 26, 2022 10:18
Ladicek added 2 commits May 26, 2022 12:31
This commit includes several improvements:

- `Type.toString()` no longer shows type annotations before a package name,
  because package names can't be annotated;
- type annotations on types that are local classes are supported properly;
- type annotations on outermost annotable types are supported properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant