45 Commits
Author SHA1 Message Date
Noel Grandin 00e1ac51e6 'new Character' is deprecated in Java
replace with Character.valueOf

Change-Id: I9938db0fce6490eba6f4900efc3c139a1b71d120
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158786
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-11-02 14:47:25 +01:00
Noel Grandin 41d9584179 'new Double' is deprecated in Java
replace with Double.valueOf

Change-Id: If5be8e500e31ebf9d5fb20ea7dd474677d7c74ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158785
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-11-02 12:00:34 +01:00
Noel Grandin cb982f1479 'new Float' is deprecated in Java
replace with Float.valueOf

Change-Id: Ib6408b24dac2953789d0ec67e73b8be8aefca252
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158784
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-11-02 12:00:24 +01:00
Stephan Bergmann 04117f78f2 Fix UNOIDL identifiers that started with lowercase and contained underlines
...which are reserved in UNOIDL (though unoidl-write does not enforce that for
now, see the TODO in unoidl/source/sourceprovider-scanner.l, and idlc only
warned about it with an explicit -cid option)

Change-Id: I529f385e9c263d2dab9baf3b99f0208457da04c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121346
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-08-31 11:02:37 +02:00
Stephan Bergmann d5a100f594 tdf#143450: Special integre+fp struct return case needs a fix too, of course
...similar to ca344be7aa "tdf#143450: Fix special
fp+integer struct return case for gcc_*_x86-64"

Change-Id: Ia8110d632a1c5f328822c434efc5b09bd53ec9e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119883
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-08-02 18:21:30 +02:00
Stephan Bergmann ca344be7aa tdf#143450: Fix special fp+integer struct return case for gcc_*_x86-64
For one, the loop in x86_64::fill_struct was backwards.

And for another, privateSnippedExecutor does not need special handling of FLOAT
and DOUBLE return values (they can simply be moved to %xmm0, as covered by the
general case), but rather for those small structs where floating-point member(s)
in a first eightbyte (targeting %xmm0) are followed by integer member(s) in a
second eightbyte (targeting %rax).  Extended testtools to cover two such cases.

Change-Id: I8e775a1d1ce2312610f265bcc8e40b09bdac56df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119576
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-07-28 13:08:07 +02:00
Tor Lillqvist 76fc34baeb Make bridgetest exercise parameter passing in the C++/UNO bridge harder
The C++/UNO bridge for macOS on arm64 currently uses the Linux code.
Apple's ABI uses slightly different parameter passing on the stack,
though. See
https://developer.apple.com/documentation/xcode/writing_arm64_code_for_apple_platforms?language=objc

That has not been taken into account yet in the bridge code. The
bridgetest, when run on macOS on arm64, didn't notice, sadly, but
succeeded. With this change it crashes, as one would expect it to do.

Add one more byte and short parameter to the setValues(), setValues2()
and getValues() calls in the XBridgeTestBase interface. The stack
allocation for those [in] parameters to setValues() differ between the
Linux and Apple ABIs. Add corresponding attributes to the interface,
and members to the SimpleTest struct.

The changes to the source files in the cli subdirectory (C++/CLI,
VB.NET, and C#) are done blindly as they aren't compiled even on
Windows currently. Most likely the changes to them are incomplete and
erroneous.

Change-Id: I6f689a130d89b23cad9918829107d7da49a79c55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105770
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-11-13 20:01:08 +01:00
Caolan McNamara e8ac3b5bd9 ppc64: using a fp register also consumes a gp register slot
Change-Id: Idf6f40081f4598c0fa9d1e10bdc208eae49e4cd1
Reviewed-on: https://gerrit.libreoffice.org/16936
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-07-10 19:47:40 +00:00
Noel Grandin efd4bfa818 java:regulatize the order of 'final' and public/private
Make the order be 'public static' or 'private static'
Just makes the code nicer to read.

Change-Id: I182424bda45a2d68642e5d04c6091d268ace1fe2
Reviewed-on: https://gerrit.libreoffice.org/16202
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-11 09:34:00 +00:00
Noel Grandin db203e59d6 java: remove some unused fields
Change-Id: I1b6fb6b47439c448ac31983702772e2115c70d56
2014-12-05 11:15:56 +02:00
Noel Grandin 9341bf3dc3 java: when rethrowing, store the original exception
Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
2014-10-16 12:27:15 +02:00
Noel Grandin 04ace01ec5 java: remove unnecessary adding of empty strings
Change-Id: I3825ea5fb1eb34ca52659350e202f95abea945a9
2014-10-07 13:20:01 +02:00
Noel Grandin 6884ef6317 java: don't catch and then just rethrow an exception
without doing anything else useful

Change-Id: I5803d84d46e0a70e1759f2202e2c2273087f8723
2014-08-20 11:47:47 +02:00
Noel Grandin c552aac9f8 java: use 'Byte.valueOf' instead of 'new Byte'
Change-Id: Ia99765a6226317ee41ffb02a1b0dd7e6fd944a90
2014-08-19 14:57:18 +02:00
Noel Grandin 0764292c5d java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
2014-08-19 14:57:18 +02:00
Noel Grandin 8a2c6c29af java: use 'Long.valueOf' instead of 'new Long'
Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69
2014-08-19 14:57:17 +02:00
Noel Grandin ff0ad0493e java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
2014-08-19 14:57:17 +02:00
Noel Grandin be1bb7b1cc java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
2014-08-19 14:57:16 +02:00
Noel Grandin 0c5f51ebbc java: remove commented out code
Change-Id: I44e2043e5da23bc9421c03e550ef1d8b7ebaad36
2014-08-05 11:31:50 +02:00
Stephan Bergmann 2f67d67cf3 testtools: simplify deprecated XTypeProvider.getImplementationId
Change-Id: I2ab505962c64711d72f2a6b4cdebaef2f1bf4439
2014-03-10 17:39:59 +01:00
Noel Grandin 422474a876 fix typo
Change-Id: I785c022c9f38eb54ba27fd76bb032f5fa7f34b63
2013-05-06 11:45:44 +02:00
Noel Grandin f9fa0dd66b Java5 updates - update code to use generics
This is all of the code I missed in my first set of patches.

Change-Id: I8c7c9e5ac28dc3c2f3ac062c806fbf0787c997bd
2012-06-29 22:03:05 +02:00
Michael Meeks 2005a34318 re-base on ALv2 code. 2012-06-29 15:51:49 +01:00
Caolán McNamara 99bf0c318b add a uno test api with more than 8 floating point args
I'm a cruel person, i.e. this targets the TODO of
dab11f7fe2 in
bridges/source/cpp_uno/gcc3_linux_arm/cpp2uno.cx
2012-02-17 12:21:36 +00:00
Michael Meeks 8c59580b88 Merge commit 'ooo/DEV300_m101' into integration/dev300_m101
Conflicts:
	smoketestoo_native/data/Global.xml
	smoketestoo_native/data/OptionsDlg.xml
	smoketestoo_native/data/Test_10er.xml
	smoketestoo_native/data/content.xml
	smoketestoo_native/smoketest.cxx
	test/source/cpp/getargument.cxx
	test/source/cpp/officeconnection.cxx
	testautomation/framework/optional/includes/basic_vba-compat_security_check.inc
	testautomation/framework/optional/includes/filedlg_cjk_folders.inc
	testautomation/global/sid/all.sid
	testautomation/global/sid/bars.sid
	testautomation/global/sid/e_all.sid
	testautomation/global/win/bars.win
	testautomation/graphics/optional/includes/impress/i_slideshow2.inc
	testautomation/graphics/optional/includes/impress/i_slideshow3.inc
	testtools/source/bridgetest/bridgetest.cxx
	testtools/source/bridgetest/constructors.cxx
	testtools/source/bridgetest/makefile.mk
	testtools/source/bridgetest/testComponent.component
2011-03-11 11:35:29 +00:00
Caolán McNamara 2cc93b0ba3 add three byte structure return test for the MacOSX/BSD quirk 2010-12-09 11:22:47 +00:00
Caolán McNamara 85cc920f24 add a Mixed Float And Integer struct return test 2010-12-09 11:19:10 +00:00
Caolán McNamara c88463b812 add a twoFloats return test 2010-12-09 11:13:27 +00:00
Caolán McNamara ebedefd60e rename AllFloats test to FourFloats 2010-12-09 10:40:52 +00:00
sb 06c8703f6c sb129: #i113189# change UNO components to use passive registration 2010-09-10 13:10:07 +02:00
Jens-Heiner Rechtien 7d8d20ca7e changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Caolán McNamara a24c356d4b cmcfixes68: #i107182# ppc fix argument passing in a rare case 2009-12-01 11:43:22 +00:00
Caolán McNamara 52da3422e4 #i105680# add struct returning bridge tests and run them during the build 2009-10-08 09:55:10 +00:00
Rüdiger Timm f50e4afb68 INTEGRATION: CWS changefileheader (1.11.44); FILE MERGED
2008/03/31 07:26:27 rt 1.11.44.1: #i87441# Change license header to LPGL v3.
2008-04-11 11:21:20 +00:00
Rüdiger Timm 3339ab7a66 INTEGRATION: CWS sb23 (1.10.16); FILE MERGED
2006/11/08 15:46:41 sb 1.10.16.1: #88601# Current context testing.
2006-12-01 13:44:03 +00:00
Rüdiger Timm 2755ade582 INTEGRATION: CWS jl31 (1.9.2); FILE MERGED
2006/02/20 15:50:32 sb 1.9.2.2: #i62339# Enabled previously commented-out test (now that the test should work).
2006/02/08 10:15:46 jl 1.9.2.1: #61436# extending tests for generated service classes
2006-03-09 09:45:47 +00:00
Jens-Heiner Rechtien a8327a0670 INTEGRATION: CWS sb46 (1.8.16); FILE MERGED
2006/01/13 11:58:19 sb 1.8.16.1: #i60341# Test service constructors.
2006-01-26 16:39:16 +00:00
Rüdiger Timm fba7395dc6 INTEGRATION: CWS ooo19126 (1.7.18); FILE MERGED
2005/09/05 17:00:50 rt 1.7.18.1: #i54170# Change license header: remove SISSL
2005-09-09 11:20:47 +00:00
Kurt Zenker cdedd53f47 INTEGRATION: CWS sb28 (1.6.24); FILE MERGED
2005/01/04 14:13:53 sb 1.6.24.1: #i24735# Merged bridges/test/java_uno/multinherit into testtools/source/bridgetest.
2005-01-18 12:27:09 +00:00
Rüdiger Timm 6e19ced723 INTEGRATION: CWS sb21 (1.5.10); FILE MERGED
2004/08/06 14:05:38 sb 1.5.10.1: #i32151# Added check on bad enum (first member != 0); adapted test to no longer use forbidden unsigned hyper as type argument.
2004-08-20 08:14:45 +00:00
Oliver Bolte fa5062858c INTEGRATION: CWS sb18 (1.4.16); FILE MERGED
2004/05/21 10:09:33 sb 1.4.16.4: #i21150# Extended multiple inheriance tests.
2004/05/19 14:31:47 sb 1.4.16.3: #i21150# Added (very fundamental) multiple inheritance tests.
2004/05/14 11:05:43 sb 1.4.16.2: #i21150# Made testing of polymorphic struct types more thorough.
2004/05/12 15:06:28 sb 1.4.16.1: #i21150# Added tests for extended interface attributes that raise exceptions and for polymorphic struct types; no longer use published com.sun.star.test.bridge UNO types, but local copies instead (which can be extended over time).
2004-06-03 13:59:40 +00:00
Vladimir Glazounov fdcec5f8d8 INTEGRATION: CWS unopkg (1.3.4); FILE MERGED
2003/09/26 13:10:54 dbo 1.3.4.1: #112449# using getCaughtException() as additional test for bridges: C++ throw;
2003-10-06 11:58:23 +00:00
Oliver Bolte fa788a552b INTEGRATION: CWS cliuno01 (1.2.24); FILE MERGED
2003/08/01 15:02:05 jl 1.2.24.1: #107130# fixed XBridgeTEst2.setSequencesOut
2003-09-04 08:16:05 +00:00
Daniel Boelzle 3c3feccb81 #104312# extended tests 2002-11-27 09:07:33 +00:00
Kay Ramme 82974c64ce moved from grande to openoffice 2001-05-04 06:05:18 +00:00