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

Make Meta.get_annotation work for constructor #6633

Merged
merged 1 commit into from
May 10, 2023

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented May 10, 2023

Pull Request Description

Fixes #6612 by searching for the atom constructor on the target itself, not its type.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Java,
  • All code has been tested:
    • Unit tests have been written where possible.

@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label May 10, 2023
@JaroslavTulach JaroslavTulach self-assigned this May 10, 2023
@@ -277,9 +277,16 @@ spec =

Meta.get_annotation value "my_method" "self" . should_equal "self"

Meta.get_annotation value "Value" "foo" 7 8 . should_equal 15
Copy link
Member Author

Choose a reason for hiding this comment

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

This test was introduced by @4e6 in #4049, but I don't think it is correct. At least according to #6612 people expect that the self value is going to be My_Type itself. Negating the test to expect Nothing and adding "get annotations on constructor" set of checks below.

Copy link
Contributor

@4e6 4e6 left a comment

Choose a reason for hiding this comment

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

okay

Copy link
Contributor

@4e6 4e6 left a comment

Choose a reason for hiding this comment

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

okay

@JaroslavTulach JaroslavTulach added the CI: Ready to merge This PR is eligible for automatic merge label May 10, 2023
@mergify mergify bot merged commit 4e7191a into develop May 10, 2023
@mergify mergify bot deleted the wip/jtulach/ConsAnno_6612 branch May 10, 2023 15:42
Procrat added a commit that referenced this pull request May 11, 2023
…ing-6287

* develop:
  Fix shortcuts table formatting (#6644)
  Automatic type based dropdown does not include singleton in a union type (#6629)
  Make Meta.get_annotation work for constructor (#6633)
  Limit the number of reported warnings (#6577)
  Add COOP+COEP+CORP headers (#6597)
Procrat added a commit that referenced this pull request May 12, 2023
* develop:
  Implement loading spinner for visualisations. (#6512)
  Fix blank input port (#6614)
  Add `Date_Range` (#6621)
  All Vector operations shall be applicable on java.util.ArrayList (#6642)
  Fix redirect paths and enable authentication and new dashboard by default (#6605)
  Fix #6287: wrong nested breadcrumb ordering (#6617)
  Whitelist AWS Cognito domains (#6643)
  Revert "Add COOP+COEP+CORP headers (#6597)" (#6647)
  Fix shortcuts table formatting (#6644)
  Automatic type based dropdown does not include singleton in a union type (#6629)
  Make Meta.get_annotation work for constructor (#6633)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to make sure Meta.get_annotation will work for a constructor.
6 participants