You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell, Win32Exception.addSuppressedReflected() is a "hack" to support old JDK versions that did not have Throwable.addSuppressed(). However, as far as I can tell, Throwable.addSuppressed() was introduced in JDK 1.7 (Java 7) and therefore the "hack" is only required to support JDK 1.6 (Java 6) or older. But do we still care about JDK 1.6 (Java 6)? I think the oldest JDK that is still maintained is JDK 1.8 (Java 8), which means that JDK 1.7 (Java 7) is obsolete, let alone JDK 1.6 (Java 6).
So, unless JNA still aims to support JDK 1.6 (Java 6), I would like to suggest to just remove Win32Exception.addSuppressedReflected() and use Throwable.addSuppressed() directly, which is a big simplification.
The text was updated successfully, but these errors were encountered:
"are mixed in the code" is a slight exaggeration. There is exactly one such instance. While being picky, there is also a usage of StandardCharsets in DBT.java. Whether I think this was worth the few hours this took is another matter. #1545
As far as I can tell,
Win32Exception.addSuppressedReflected()
is a "hack" to support old JDK versions that did not haveThrowable.addSuppressed()
. However, as far as I can tell,Throwable.addSuppressed()
was introduced in JDK 1.7 (Java 7) and therefore the "hack" is only required to support JDK 1.6 (Java 6) or older. But do we still care about JDK 1.6 (Java 6)? I think the oldest JDK that is still maintained is JDK 1.8 (Java 8), which means that JDK 1.7 (Java 7) is obsolete, let alone JDK 1.6 (Java 6).So, unless JNA still aims to support JDK 1.6 (Java 6), I would like to suggest to just remove
Win32Exception.addSuppressedReflected()
and useThrowable.addSuppressed()
directly, which is a big simplification.The text was updated successfully, but these errors were encountered: