Advertisement
Guest User

AWT Bug

a guest
Feb 26th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. sun.awt.X11.XDesktopPeer
  2.  
  3. private void launch(URI uri) throws IOException {
  4. byte[] uriByteArray = ( uri.toString() + '\0' ).getBytes();
  5. boolean result = false;
  6. XToolkit.awtLock();
  7. try {
  8. if (!nativeLibraryLoaded) {
  9. throw new IOException("Failed to load native libraries.");
  10. }
  11. result = gnome_url_show(uriByteArray); //bug is here
  12. } finally {
  13. XToolkit.awtUnlock();
  14. }
  15. if (!result) {
  16. throw new IOException("Failed to show URI:" + uri);
  17. }
  18. }
  19.  
  20. https://github.com/JetBrains/jdk8u_jdk/blob/master/src/solaris/classes/sun/awt/X11/XDesktopPeer.java
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement