Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8293691

converting a defined BasicType value to a string should not crash the VM

XMLWordPrintable

    • b18

        The fix for JDK-8287491 was a little too aggressive in that it modified a test (TestInvalidDebugInfo ) to prevent type2name being called with BasicType::T_ILLEGAL. While T_ILLEGAL models an invalid value and it should not show up in certain contexts, simply converting it to a string should not crash the VM. That is, in the context of type2name, T_ILLEGAL is a valid value.

        I would recommend adopting the fix suggested by [~kbarrett]: https://bugs.openjdk.org/browse/JDK-8287491?focusedCommentId=14498870&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14498870

              jsjolen Johan Sjölen
              dnsimon Douglas Simon
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: