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

test: OptionsTest checks for fixed values being returned from hashCode() #577

Open
olavloite opened this issue Nov 3, 2020 · 0 comments
Labels
api: spanner Issues related to the googleapis/java-spanner API. good first issue This issue is a good place to started contributing to this repository. help wanted We'd love to have community involvement on this issue. type: cleanup An internal cleanup or hygiene concern.

Comments

@olavloite
Copy link
Collaborator

The Options#hashCode() method does not guarantee to return a fixed value that is equal on all JVM's (at least; the documentation does not guarantee it). In reality it does, because the current implementation only uses hash codes that are guaranteed to be equal on all JVM's. The method should either be documented to have this behavior, or these tests should be replaced with tests that assert that the hashCode and equals methods comply with the general contract regarding these methods.

@olavloite olavloite added help wanted We'd love to have community involvement on this issue. good first issue This issue is a good place to started contributing to this repository. type: cleanup An internal cleanup or hygiene concern. labels Nov 3, 2020
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner API. label Nov 3, 2020
ansh0l pushed a commit to ansh0l/java-spanner that referenced this issue Nov 10, 2022
This is an auto-generated regeneration of the .pb.go files by
cloud.google.com/go/internal/gapicgen. Once this PR is submitted, genbot will
update the corresponding PR to depend on the newer version of go-genproto, and
assign reviewers. Whilst this or any regen PR is open in go-genproto, genbot
will not create any more regeneration PRs. If all regen PRs are closed,
gapicgen will create a new set of regeneration PRs once per night.

If you have been assigned to review this PR, please:

- Ensure that CI is passing. If it's failing, it requires your manual attention.
- Approve and submit this PR if you believe it's ready to ship. That will prompt
genbot to assign reviewers to the google-cloud-go PR.

Corresponding google-cloud-go PR: googleapis/google-cloud-go#3952

Changes:

feat!: Refactored Elliptic Key curves to provide additional options, the NamedCurve enum is replaced by the EcKeyType message.
  PiperOrigin-RevId: 368757092
  Source-Link: googleapis/googleapis@b1c23ed

chore(gaming): migrate gaming/{v1, v1beta} to the PHP microgenerator
  Committer: @miraleung
  PiperOrigin-RevId: 368737560
  Source-Link: googleapis/googleapis@001f72d

chore(oslogin): remove unnecessary gapic.yaml for oslogin
  Committer: @miraleung
  PiperOrigin-RevId: 368733985
  Source-Link: googleapis/googleapis@9ee1b71

chore: release gapic-generator-php v0.1.0
  Committer: @miraleung
  PiperOrigin-RevId: 368733958
  Source-Link: googleapis/googleapis@bd72b41

docs(datacatalog): reformat comments in PolicyTagManager definition
  PiperOrigin-RevId: 368687296
  Source-Link: googleapis/googleapis@91eee3d
rajatbhatta pushed a commit to rajatbhatta/java-spanner that referenced this issue Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner API. good first issue This issue is a good place to started contributing to this repository. help wanted We'd love to have community involvement on this issue. type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

1 participant