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

Registry class enhancements

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8-pool
    • Fix Version/s: 9
    • Component/s: install
    • Labels:
      None
    • Resolved In Build:
      b15
    • CPU:
      generic
    • OS:
      windows
    • Verification:
      Not verified

      Backports

        Description

        Request from the team:
        Registry class (introduced in jdk8 to replace buggy RegKey class and direct WinAPI registry functions) does not contain usage examples.

        Also there are some minor issue in the class which should be fixed:
        1) deleteKeyTree() method need a parameter to specify RedirectMode
        in the current design
        Registry::LocaleMachine.deleteKeyTree(_T("SOFTWARE\\JavaSoft\\Java Update"))
        deletes the key using the default RedirectMode

        2) Registry objects need to keep RedirectMode value and open subkeys using it
        Currently
          Registry reg1(Registry::LocalMachine, _T("Software"), Registry::ReadOnly, Registry::Wow64_32);
          Registry reg2(reg1, _T("JavaSoft"), Registry::ReadOnly);
        opens reg2 with the default RedirectMode
        but it should use the parent RedirectMode (so in the example reg2 should be opened in Wow64_32)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                amenkov Alex Menkov
                Reporter:
                amenkov Alex Menkov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: