Age | Commit message (Collapse) | Author |
|
... derives from com.sun.star.uno.RuntimeException instead of
com.sun.star.uno.Exception.
Only test that breaks with this change is jurt_uno/AnyConverter_Test,
which for mysterious reasons effectively tests that
IllegalArgumentException is a subclass of Exception and not
RuntimeException. Presumably this is just a generic exception test that
happens to use IllegalArgumentException.
Some further testing indicates there are no problems expected at
runtime:
Running "make subsequentcheck" with all Java test code compiled against
a ridl.jar that does not contain the change, running against a soffice
that uses ridl.jar and rdbs with the change + ridl.jar with the change
on the test side yields exactly the same AnyConverter_Test failure, with
no other failures.
Change-Id: Iad183de76ec7e0d56648084e97cdcc160b5b033d
|
|
This reverts commit 8ea4657f64e7575696be4bba5b2a4309ac029ae4.
Conflicts:
pyuno/source/module/pyuno_util.cxx
Change-Id: I252688b72610864613ceb80aac9030062e63fdac
|
|
I don't know if it's ok but compilation doesn't fail
Change-Id: I6960b2cd4587b3f49ccfa7fb24874c288ccfce6a
|
|
Change-Id: I637292be9791484a58b60e8889962176a37e2c07
|
|
Replace currrent wrappers of Python 2 only PyString_* functions with
better abstractions that handle default "str" (PyStr_*) or byte strings
("str"/"bytes" depending on version, PyStrBytes_*) and adjust all
invocations to work on appropriate string types.
Fixes obvious "attributes typeName and/or value of uno.Enum are not
strings" exceptions with Python 3.
Change-Id: I255dcb1bc198fd7f6a62b83b957901521071a480
|
|
This is necessary for Python3; "str" type is still accepted so it runs
on Python 2 as well.
Change-Id: I51098feca00e4cd8ce3ceebf663d4ce79252cbcd
|
|
Change-Id: I12e55c8810193591d9cd017bf5d89078b3915ddb
|
|
... so wrap the InvocationTargetException that happens when loading
Python 2 only LightProof into Python 3 so LO does not crash.
Change-Id: I4da230b46ef23c184718e858bf178f340f4b9c1f
|
|
Change-Id: Ieb49277020d31779979d8eb508391d6f8b97bf94
|
|
Change-Id: Ibc446d8616bad00ce71c273e46517e80527e2f0e
|
|
Change-Id: I05287fd79455f968c770d61bf5f320b07bba7d9e
|
|
The XComponent part of the interface made no sense for a singleton,
so it was removed.
Explicitly document the 'theCoreReflection' singleton and move it
into it's own file.
Deprecated the now old CoreReflection service.
Change-Id: Ib8befa87c7da7eb53a2f587948fd54a64c082472
|
|
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
|
|
Change-Id: Ie2cc83dde7e0522e0bf669a1dd3d7a8ca680f7e2
|
|
Change-Id: I303536b957f902d3bbda9f3a96b507851292523a
|
|
a patch contributed by Pedro Giffuni to handle FreeBSD issues
that are unlikely to be an issue with a two-layer LibreOffice.
http://svn.apache.org/viewvc?view=revision&revision=1180509
|
|
Change-Id: Ic3d45afca14d0bebfb6168b6cf6fc6c618754183
|
|
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
|
|
Change-Id: I94b074d7d2e1ea2f80c3075ae49530225947442d
|
|
Change-Id: I7f923a5622214f7540a789bcdd93bf6fd1d166db
|
|
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
|
|
Change-Id: I44518bb1b464bb0b458c0b5f1c249ef160ea3b26
|
|
Change-Id: Ibe5c739c3066f3e706a44b64d4ad775abde9662c
|
|
Change-Id: I12a55e08a83b88221d992790c97c830761755582
|
|
Change-Id: I9d118a5fbe2306465d8bcdb9ddd0596588137e5e
|
|
Pattern used:
find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
|
|
|
|
Thanks to Maxime de Roucy for the hint that the "cmpfunc" type doesn't exist.
|
|
This requires setting a rich comparison flag in Python 2, while Python 3
uses rich comparison by default.
(regression from a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe)
|
|
(regression from a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe)
|
|
|
|
Apparently the thread spawned in decreaseRefCount runs and deletes
itself before the "m_hThread != 0" from osl::Thread::create is executed;
try a lame workaround for that.
==1877== Invalid read of size 8
==1877== at 0x2A70E546: osl::Thread::create() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877== by 0x2A70E351: pyuno::decreaseRefCount(_is*, _object*) (in pyuno/unxlngx6/lib/libpyuno.so)
==1877== by 0x2A7092B4: pyuno::Adapter::~Adapter() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877== by 0x2A709393: pyuno::Adapter::~Adapter() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877== by 0x5EF2F64: cppu::OWeakObject::release() (weak.cxx:213)
==1877== by 0x2A70DE69:
==1877== Address 0x1ee30818 is 8 bytes inside a block of size 32 free'd
==1877== at 0x4A0662E: free (vg_replace_malloc.c:366)
==1877== by 0x4C44B62: rtl_freeMemory_SYSTEM(void*) (alloc_global.cxx:285)
==1877== by 0x4C44DC7: rtl_freeMemory (alloc_global.cxx:355)
==1877== by 0x2A70E41E: osl::Thread::operator delete(void*) (in pyuno/unxlngx6/lib/libpyuno.so)
==1877== by 0x2A70E6EF: pyuno::GCThread::~GCThread() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877== by 0x2A70E303: pyuno::GCThread::onTerminated() (in pyuno/unxlngx6/lib/libpyuno.so)
==1877== by 0x2A70E671: threadFunc (in pyuno/unxlngx6/lib/libpyuno.so)
==1877== by 0x4C2E242: osl_thread_start_Impl (thread.c:292)
==1877== by 0x3C26607D8F: start_thread (pthread_create.c:309)
==1877== by 0x3C262EF48C: clone (clone.S:115)
|
|
|
|
|
|
|
|
|
|
...it was cleaned away by a09ce46818fd4d5e08b3af9a478501cd8ef5b4fe "Port PyUno
to support Python 3" but is still needed to make sure libpyuno.so is loaded
RTLD_GLOBAL (Python apparently loads its modules RTLD_LOCAL). At least with
pre 4.5 GCC this can cause problems with C++ exception handling, see the mail
thread starting at
<http://lists.freedesktop.org/archives/libreoffice/2012-February/025166.html>
"LibO 3.5RC2: terminate called after throwing an instance of
'com::sun::star::registry::InvalidRegistryException'" for details.
|
|
|
|
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones. To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
|
|
Please find attached a partial fix for Easy Hack FDO43460
Part XXVII
Modules
padmin, pyuno, rdbmaker, regexp, registry, rsc, sal
|
|
|
|
|
|
|
|
|
|
|
|
Also improve exception handling and error printing in pythonloader
Allow registration of explicit .py components - the only method that works
|
|
This commit for the old build system. (Don't bother for components not
relevant for Android.)
The Android package installer (as invoked through "adb install", from
"ant debug install") silently ignores native libraries in app packages
(.apk files) whose names don't start with "lib" and end with ".so".
The package builder (as invoked through "ant debug") in the SDK gladly
includes also thusly named native libraries in the .apk, though. Yay
for consistency.
|
|
|
|
The Windows-only code in pyuno/zipcore/python.cxx may still need fixing.
|
|
|