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

fix(java): correctly search for protected override implementations #905

Merged
merged 4 commits into from
Oct 24, 2019

Conversation

RomainMuller
Copy link
Contributor

@RomainMuller RomainMuller commented Oct 23, 2019

The code looking for overrides implementations was using the
Class#getMethods method, but this only considers public members of
the class. Chanegd to #getDeclaredMethods which accounts for all the
methods.

Fixes #903


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The code looking for overrides implementations was using the
`Class#getMethods` method, but this only considers `public` members of
the class. Chanegd to `#getDeclaredMethods` which accounts for *all* the
methods.

Fixes #903
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@RomainMuller RomainMuller marked this pull request as ready for review October 23, 2019 17:36
@RomainMuller RomainMuller requested review from bmaizels and a team as code owners October 23, 2019 17:36
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@RomainMuller RomainMuller removed request for a team and bmaizels October 24, 2019 07:06
@RomainMuller RomainMuller merged commit e3f0f6c into master Oct 24, 2019
@RomainMuller RomainMuller deleted the rmuller/fix-protected-overrides branch October 24, 2019 07:16
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.

java: unable to override protected methods
3 participants