Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #5179. On eval of Time#strftime read from file: Java::JavaLang:…
…:Error: Unknown special char: Y Weirdest bug I have fixed in a while. Java enum is lazily stood up upon first access. The enum constructor we had is also setting each element made into a static array. Most encodings will go down a code path which references this enum (Format) and thus initialize itself and populate the static array. USASCII and ASCII-8BIT will not. So the static array will have no values and we fail. This really seems like java compiler should have seen this side-effect assignment and stood up the enum at same general point during static initialization.