Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[release/9.0-staging] Use alternative format string specifier to ensure decimal point is present #111444

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 15, 2025

Backport of #111254 to release/9.0-staging

/cc @jkoritzinsky

Customer Impact

  • Customer reported
  • Found internally

ILDasm (9.0) outputs the wrong format in float64(...) and float32(...) for double and float values without decimal places. The decimal point is missing.
ILAsm interprets these as int64 and therefore casts them to double or float values, which leads to incorrect values.

Regression

  • Yes
  • No

[If yes, specify when the regression was introduced. Provide the PR or commit if known.]

Regression from .NET 9

Testing

[How was the fix verified? How was the issue missed previously? What tests were added?]

Manual verification

Risk

[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]

Low risk. Impacts ildasm usage only and the fix has been validated.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.

Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

lgtm. we will take for consideration in 9.0.x

@jeffschwMSFT jeffschwMSFT added the Servicing-consider Issue for next servicing release review label Jan 15, 2025
@jeffschwMSFT jeffschwMSFT added this to the 9.0.x milestone Jan 15, 2025
@rbhanda rbhanda modified the milestones: 9.0.x, 9.0.3 Jan 28, 2025
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 28, 2025
@jeffschwMSFT
Copy link
Member

@jkoritzinsky can you take a look at the CI failures? we can merge when ready

@jkoritzinsky
Copy link
Member

/ba-g all failures are known

@jkoritzinsky jkoritzinsky merged commit 99b4e84 into release/9.0-staging Jan 30, 2025
87 of 93 checks passed
@jkotas jkotas deleted the backport/pr-111254-to-release/9.0-staging branch February 2, 2025 18:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-ILTools-coreclr Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants