Azure / Azure/azure-libraries-for-java

toString() method returns enum name instead of value

Open
#113 0 comments 0 reactions 0 assignees View on GitHub
Bug customer-reported Investigate Mgmt
Dominant language
Java
Stars
97
Forks
102
PR merge metrics
No merged PRs in 30d

Description

A change introduced in 1.5.0 (link: https://github.com/Azure/azure-libraries-for-java/commit/1615dc2224861adc1f457744410d28274ce4cf89) incorrectly dropped the `toString()` method override for some enum classes (e.g. `VirtualMachineSizeTypes` & `IPVersion`) while correctly returning value for some other enum classes (e.g. `RollingUpgradeActionType`). As a result the affected enum classes returns the enum name (ALL_CAPS) instead of the value.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.