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

Registry class enhancements

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8-pool
    • install
    • None
    • b15
    • generic
    • windows
    • Not verified

        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)

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

                Created:
                Updated:
                Resolved: