Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
79f94fee
Kaydet (Commit)
79f94fee
authored
Eyl 21, 2012
tarafından
Tor Lillqvist
Kaydeden (comit)
Tor Lillqvist
Eyl 21, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
There is no java_uno library to load in the disable-dynloading case on Android
Change-Id: I350aeeb7fb1e00b201077883dd5fd601b42a626b
üst
f09f52e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
2 deletions
+40
-2
JNI_info_holder.java
...no/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java
+19
-0
JNI_proxy.java
.../jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
+21
-2
No files found.
bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java
Dosyayı görüntüle @
79f94fee
// -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/*
/*
* This file is part of the LibreOffice project.
* This file is part of the LibreOffice project.
*
*
...
@@ -24,6 +25,22 @@ import com.sun.star.lib.util.NativeLibraryLoader;
...
@@ -24,6 +25,22 @@ import com.sun.star.lib.util.NativeLibraryLoader;
public
final
class
JNI_info_holder
public
final
class
JNI_info_holder
{
{
static
{
static
{
if
(
System
.
getProperty
(
"java.vendor"
)
==
"The Android Project"
)
{
// See corresponding code in
// javaunohelper/com/sun/star/comp/helper/Bootstrap.java for more
// comments.
boolean
disable_dynloading
=
false
;
try
{
System
.
loadLibrary
(
"lo-bootstrap"
);
}
catch
(
UnsatisfiedLinkError
e
)
{
disable_dynloading
=
true
;
}
if
(!
disable_dynloading
)
NativeLibraryLoader
.
loadLibrary
(
JNI_info_holder
.
class
.
getClassLoader
(),
"java_uno"
);
}
else
NativeLibraryLoader
.
loadLibrary
(
JNI_info_holder
.
class
.
getClassLoader
(),
NativeLibraryLoader
.
loadLibrary
(
JNI_info_holder
.
class
.
getClassLoader
(),
"java_uno"
);
"java_uno"
);
}
}
...
@@ -41,3 +58,5 @@ public final class JNI_info_holder
...
@@ -41,3 +58,5 @@ public final class JNI_info_holder
finalize
(
s_jni_info_handle
);
finalize
(
s_jni_info_handle
);
}
}
}
}
// vim:set shiftwidth=4 softtabstop=4 expandtab:
bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
Dosyayı görüntüle @
79f94fee
// -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/*
/*
* This file is part of the LibreOffice project.
* This file is part of the LibreOffice project.
*
*
...
@@ -30,8 +31,24 @@ import com.sun.star.uno.IQueryInterface;
...
@@ -30,8 +31,24 @@ import com.sun.star.uno.IQueryInterface;
public
final
class
JNI_proxy
implements
java
.
lang
.
reflect
.
InvocationHandler
public
final
class
JNI_proxy
implements
java
.
lang
.
reflect
.
InvocationHandler
{
{
static
{
static
{
NativeLibraryLoader
.
loadLibrary
(
JNI_proxy
.
class
.
getClassLoader
(),
if
(
System
.
getProperty
(
"java.vendor"
)
==
"The Android Project"
)
{
"java_uno"
);
// See corresponding code in
// javaunohelper/com/sun/star/comp/helper/Bootstrap.java for more
// comments.
boolean
disable_dynloading
=
false
;
try
{
System
.
loadLibrary
(
"lo-bootstrap"
);
}
catch
(
UnsatisfiedLinkError
e
)
{
disable_dynloading
=
true
;
}
if
(!
disable_dynloading
)
NativeLibraryLoader
.
loadLibrary
(
JNI_info_holder
.
class
.
getClassLoader
(),
"java_uno"
);
}
else
NativeLibraryLoader
.
loadLibrary
(
JNI_proxy
.
class
.
getClassLoader
(),
"java_uno"
);
}
}
protected
static
ClassLoader
s_classloader
=
protected
static
ClassLoader
s_classloader
=
JNI_proxy
.
class
.
getClassLoader
();
JNI_proxy
.
class
.
getClassLoader
();
...
@@ -204,3 +221,5 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
...
@@ -204,3 +221,5 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
&&
m_oid
.
equals
(
UnoRuntime
.
generateOid
(
obj
)));
&&
m_oid
.
equals
(
UnoRuntime
.
generateOid
(
obj
)));
}
}
}
}
// vim:set shiftwidth=4 softtabstop=4 expandtab:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment