changeset 6824:1331fa69ef12

6571600: JNI use results in UnsatisfiedLinkError looking for libmawt.so Summary: Fix is to call dladdr with name less likely to cause name conflict. Reviewed-by: serb, art
author dbuck
date Wed, 08 Jan 2014 02:51:26 -0800
parents 21528ae4d923
children aaa6b578707e
files src/solaris/native/sun/awt/awt_LoadLibrary.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/awt/awt_LoadLibrary.c	Thu Jan 02 15:26:53 2014 +0000
+++ b/src/solaris/native/sun/awt/awt_LoadLibrary.c	Wed Jan 08 02:51:26 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -96,7 +96,7 @@
     jvm = vm;
 
     /* Get address of this library and the directory containing it. */
-    dladdr((void *)JNI_OnLoad, &dlinfo);
+    dladdr((void *)AWT_OnLoad, &dlinfo);
     realpath((char *)dlinfo.dli_fname, buf);
     len = strlen(buf);
     p = strrchr(buf, '/');