Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegistryKey.getType() returning unexpected values #94

Open
joelcarranza opened this issue Jun 10, 2019 · 0 comments
Open

RegistryKey.getType() returning unexpected values #94

joelcarranza opened this issue Jun 10, 2019 · 0 comments

Comments

@joelcarranza
Copy link

I'm leveraging RegistryKey class to access registry. When calling RegistryKey.getType() (which returns a long) the value is sometimes one of TYPE_SZ, TYPE_DWORD, etc.... and sometimes a large number

7710218834719801345
8026079139213606913
etc...

What is returned for any particular registry key seems to vary randomly.

However, I found that by casting this long to an integer the correct value is always obtained.

I suspect that RegistryKey.getType() should return an int and the type coercion should happen somewhere internally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant