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

CORE-18180 Correct StateRef.toString #1327

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

lankydan
Copy link
Collaborator

@lankydan lankydan commented Nov 3, 2023

The index in StateRef.toString was being formatted which added commas to the output. This created an invalid string representation of a StateRef, causing errors if we ever called StateRef.parse on the output of StateRef.toString.

Rely on normal string concatenation instead of MessageFormat.format to resolve this.

@corda-jenkins-ci02
Copy link
Contributor

Scanning for breaking API changes introduced by this PR

Scan Succeeded

@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Nov 3, 2023

Jenkins build for PR 1327 build 5

Build Successful:
Jar artifact version produced by this PR: 5.1.0.37-alpha-1699342785521

The index in `StateRef.toString` was being formatted which added commas
to the output. This created an invalid string representation of a
`StateRef`, causing errors if we ever called `StateRef.parse` on the
output of `StateRef.toString`.

Rely on normal string concatenation instead of `MessageFormat.format` to
resolve this.
@lankydan lankydan force-pushed the dan/CORE-18180-state-ref-comma-parsing branch from 405fe8b to 94ac6e9 Compare November 7, 2023 07:39
Copy link

sonarqubecloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@jennyang-r3 jennyang-r3 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@aditisdesai aditisdesai left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@lankydan lankydan merged commit 3901a3c into release/os/5.1 Nov 7, 2023
3 checks passed
@lankydan lankydan deleted the dan/CORE-18180-state-ref-comma-parsing branch November 7, 2023 12:19
charlieR3 pushed a commit that referenced this pull request Nov 10, 2023
The index in `StateRef.toString` was being formatted which added commas
to the output. This created an invalid string representation of a
`StateRef`, causing errors if we ever called `StateRef.parse` on the
output of `StateRef.toString`.

Rely on normal string concatenation instead of `MessageFormat.format` to
resolve this.
dickon pushed a commit that referenced this pull request Nov 17, 2023
The index in `StateRef.toString` was being formatted which added commas
to the output. This created an invalid string representation of a
`StateRef`, causing errors if we ever called `StateRef.parse` on the
output of `StateRef.toString`.

Rely on normal string concatenation instead of `MessageFormat.format` to
resolve this.
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.

4 participants