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

Fix HTMLConverter to look for build number safely

XMLWordPrintable

    • b33
    • generic
    • generic

      The HTMLConverter has some logic in
      deploy/src/plugin/share/converter/sun/plugin/converter/engine/PluginConverter.java

      that isn't very robust when looking for the build number from the release string.

      First, it should look for the last 'b'.
      Second, it needs to allow for it not being there, exceptions in parsing out the build number
      from the release string should not be seen. Needs to be robust.

      I recently tried to add '-fastdebug' to the release string and this code broken
      because it found the b in fastdebug, then crashed with a number format exception
      trying to parse 'ug'.

      Others have experienced problems when they managed to create a release string that
      had no 'b'.

      ###@###.### 2005-04-18 16:24:11 GMT

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: