twain4java icon indicating copy to clipboard operation
twain4java copied to clipboard

Find bug on checking architecture

Open TakemoGit opened this issue 5 months ago • 0 comments

Hi. I found bug at Twain#getArch().

On Windows11, System.getProperty("os.name") returns "Windows11" and getArch() returns "32", 32bit JRE on Windows10 64bit returns "64". Why dont you use Native.POINTER_SIZE to check architecture.

e.g. return (Native.POINTER_SIZE == 8) ? "64" : "32";

Thank you for the wonderful program 😄

TakemoGit avatar Jul 28 '25 03:07 TakemoGit