summaryrefslogtreecommitdiffstats
path: root/jurt
Commit message (Collapse)AuthorAgeFilesLines
* java: 'final static' to 'static final'Noel Grandin2015-06-151-1/+1
| | | | | | | | | this is the canonical order, and it makes the code easier to read Change-Id: I272e7f1e140296e582702b6dbf77a03eefb65470 Reviewed-on: https://gerrit.libreoffice.org/16242 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org>
* java:regulatize the order of 'final' and public/privateNoel Grandin2015-06-1112-51/+51
| | | | | | | | | | 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>
* java: some random small cleanupsNoel Grandin2015-04-201-1/+1
| | | | Change-Id: I22a5b9fa29d465a21e682279e6e88d37bd8adf93
* Typos: caculate->calculate + acceses->accessesJulien Nabet2015-02-219-9/+9
| | | | Change-Id: Id2b645829ceb9affc76483a651fe6830a9f01cda
* enable tcpNoDelay for loopback connections automaticallyNoel Grandin2015-01-202-5/+9
| | | | | | | | | | it can make a significant speed difference for applications talking to the office binary via UNO Change-Id: If6e901908fe6a6119ac1fd0bf8feebabe5602ff7 Reviewed-on: https://gerrit.libreoffice.org/13856 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* -Werror,-Wmacro-redefined (under Clang -fsanitize=*)Stephan Bergmann2015-01-061-7/+0
| | | | Change-Id: Ifd23373b1ac4919793d1b4251ed90cf2dd6f2bda
* java: remove dead codeNoel Grandin2015-01-051-2/+0
| | | | | | found by UCDetector Change-Id: I6b0f49529379072da566e927b86815f173e7a90b
* java: remove OOoRunnerLightNoel Grandin2014-12-162-2/+2
| | | | | | | | | and just use OOoRunner, there is no point in having a stripped down jar, the cost of firing up the Java VM completely dwarfs any benefit of having a smaller jar. Change-Id: Ibcc3c5bd6e9b9c918041142dd32db0ea5dddc25b Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* java: remove some unused fields and variablesNoel Grandin2014-12-154-9/+5
| | | | | | | Change-Id: I5d6071096307adbe7df0178000346cf915afa3e7 Reviewed-on: https://gerrit.libreoffice.org/13477 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* update documentationStephan Bergmann2014-12-111-4/+6
| | | | Change-Id: Icd966a850b7c5e276e8b1d74566a4ea02e5b4a5c
* java: reduce visibility of fields and methodsNoel Grandin2014-12-113-8/+8
| | | | | | | | | found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* rhbz#1036877: Join Java AsynchronousFinalizer thread well before exitStephan Bergmann2014-12-093-38/+60
| | | | | | | | | | | | | | | | | | | | | | | | AsynchronousFinalizer was originally added as 870a4401c05beec3d31c1f6055a64591edd0a9d9 "INTEGRATION: CWS mtg1: #i57753# Avoid long-running finalize methods" referring to <https://issues.apache.org/ooo/show_bug.cgi?id=57753> " Fix JNI-UNO bridge so that the JVM doesn't run out of memory when a destructor locks the SolarMutex." It is unclear to me how relevant "If JVMs are getting more mature and should no longer have problems with long-running finalize methods, this class could be removed again" really is in practice. After all, advice on hotspot-gc-devel is to avoid finalize() if possible (<http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2014-June/010215.html> "Re: History of finalizer execution and gc progress?"). So stick with this approach of home-grown draining for now (where a home-grown approach using PhantomReferencens would need a dedicated draining thread, too, so would not have much benefit over the existing code in practice). Timely termination of AsynchronousFinalizer threads is achieved by using a dedicated thread per bridge and joining it in the remote bridge's dispose() resp. the JNI environment's new java_env_dispose. Change-Id: Idcef2dbf361a1de22f60db73828f59e85711aea7
* Typo "mehtod" -> "method"Stephan Bergmann2014-12-081-1/+1
| | | | Change-Id: I49f3f59c76bd4dd078f7014b6a0450241214db7f
* fdo#86745 - Possible exception/segfault in jurt jpipe.dll under Windows ...Juergen Funk2014-12-052-23/+46
| | | | | | | | | | | | | | - Remove the LoadLibrary from DLLMain (from windows not recommended) see http://msdn.microsoft.com/en-us/library/windows/desktop/ms682583(v=vs.85).aspx in section Remarks - Improve the comment why we need two dll's (jpipe.dll and jpipx.dll) - Integrate CriticalSection, init in DllMain see link http://msdn.microsoft.com/en-us/library/windows/desktop/dn633971(v=vs.85).aspx#general_best_practices Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: removed the unsafe module == NULL check around the critical section in getFunction Change-Id: I6d5f655a4942437f6dc722236f6c371063e2c407
* java: remove some unused local variablesNoel Grandin2014-12-052-2/+1
| | | | Change-Id: Ia01528460e2f4b610d123e29cad66520abc6a965
* Fold URE: WindowsStephan Bergmann2014-12-031-2/+1
| | | | | | | | ...assuming the delayLoadHook in cli_ure/source/native/native_bootstrap.cxx is no longer necessary and loading of cppuhelper from the program dir cannot fail regardless in whatever scenario the cli_cppuhelper library itself is loaded. Change-Id: I13f32b327bca4cce9780864f5e57cdad3860afe5
* Fold URE: Linux ure/share/java/* -> program/classes/Stephan Bergmann2014-11-281-1/+1
| | | | Change-Id: I86864f832c0377d307cfa0b2c137f452e43797eb
* Fold URE: Linux ure/lib/* -> program/Stephan Bergmann2014-11-281-1/+1
| | | | | | | The ../../../program/ links in the URE jar Class-Paths are a temporary kludge (and juh.jar had lacked adaption for Mac OS X). Change-Id: I2542d8a582866485dd61c05df3fc6b4b39a8403d
* readwrite_helper.c -> readwrite_helper.cxxStephan Bergmann2014-11-194-33/+7
| | | | Change-Id: I6d9f43a18e13cb291cb678b6faeeed7c0ec9de1a
* pipe.c -> pipe.cxxStephan Bergmann2014-11-192-1/+1
| | | | Change-Id: I0c9659379e6120c0bf01b6436d3127b83ad01af1
* nlsupport.c -> nlsupport.cxxStephan Bergmann2014-11-192-1/+1
| | | | Change-Id: Ida0c3c0c521f71fd3f18a12c02cf98ac96c5b7a6
* mutex.c -> mutex.cxxStephan Bergmann2014-11-192-1/+1
| | | | Change-Id: I24ebffd1b055bdd6ad93d2f071d20480b549379f
* memory.c -> memory.cxxStephan Bergmann2014-11-192-1/+1
| | | | Change-Id: I87d977aabd09ff01cba0f25247dca43a2bf0dd2b
* java: make fields final where possibleNoel Grandin2014-11-182-4/+3
| | | | | | found by PMD Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-122-2/+2
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: last statement in finalize() method should be call to super.finalize()Noel Grandin2014-11-121-1/+2
| | | | | | | Change-Id: I1785c6cef1fe7c1990207a76c263cff388cbb7e1 Reviewed-on: https://gerrit.libreoffice.org/12375 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: reduce excessive code indentation levelsNoel Grandin2014-11-122-25/+25
| | | | | | | | | by using early return in some methods Change-Id: I3611c8c89b3a94ef7e1772d178acf065fd7fcdc7 Reviewed-on: https://gerrit.libreoffice.org/12374 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Fixed typos. No automatic tools (sed, and so on).Andrea Gelmini2014-10-304-5/+5
| | | | | | | | Change-Id: Ia43976d84eede6f699381bc4f3daf89b95e4cb4f Reviewed-on: https://gerrit.libreoffice.org/12150 Reviewed-by: Bryan Quigley <gquigs@gmail.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* Fix indentationStephan Bergmann2014-10-271-4/+4
| | | | Change-Id: Ic058759782f95e330d8c581911aeb163340a7c4b
* java: when rethrowing, store the original exceptionNoel Grandin2014-10-166-30/+26
| | | | Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
* java: always use braces for while loopsNoel Grandin2014-10-161-4/+8
| | | | Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
* java: reduce the depth of some deeply nested if blocksNoel Grandin2014-10-162-59/+60
| | | | Change-Id: I3c0c7f08d4d8ea594e72fc0d9b93d085d4ab4bf5
* jurt: print an array with java.util.Arrays.toStringRobert Antoni Buj i Gelonch2014-10-141-2/+5
| | | | | | | Change-Id: I76431b67f9f6fdde2906d6d8082457ef0847108e Reviewed-on: https://gerrit.libreoffice.org/11964 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: import from the same packageRobert Antoni Buj i Gelonch2014-10-131-5/+0
| | | | | | | Change-Id: I1bb0999783f365e20b682c3707e73c65724265c9 Reviewed-on: https://gerrit.libreoffice.org/11955 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* jurt: use new exception constructorsRobert Antoni Buj i Gelonch2014-10-103-25/+6
| | | | | | | Change-Id: I58e7ebdd5c48094142f93f47271bcc0cc8b97981 Reviewed-on: https://gerrit.libreoffice.org/11892 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* jurt: remove unused importRobert Antoni Buj i Gelonch2014-10-081-1/+0
| | | | | | | Change-Id: I597dac3cae7eafef75982789ab1b0d3d8d6999d2 Reviewed-on: https://gerrit.libreoffice.org/11863 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
* java: no need to check for null before calling instanceofNoel Grandin2014-10-071-1/+1
| | | | | | the instanceof check returns false when passed a null value Change-Id: I7742d0d9cf25ef23d9adee7328f701c7efeea8b5
* sal/osl/unx/thread.c -> .cxxStephan Bergmann2014-10-012-1/+1
| | | | Change-Id: I6cb46a51dda3fda51a3b6413656da15fc5bdb04d
* Precise, platform-specific Class-Path path for NativeLibraryLoader useStephan Bergmann2014-09-291-1/+5
| | | | Change-Id: I01a521f5d5104bf2e6046330e2d667155c27a604
* fix Java1.5 incompatibilityNoel Grandin2014-09-292-7/+15
| | | | | | | the java.io.IOException(Throwable) constructor was only introduced in 1.6 Change-Id: Icd40e91cce7a2e89e4a70ad55f31baaa86eebfe2
* jurt: remove constructor in AnyConverter_Test (JUnit)Robert Antoni Buj i Gelonch2014-09-281-15/+31
| | | | | | | Change-Id: I4393b59d7d3a285160d6090847d9a16676f41f4d Reviewed-on: https://gerrit.libreoffice.org/11677 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: David Ostrovsky <david@ostrovsky.org>
* java: when rethrowing exceptions, store the original causeNoel Grandin2014-09-2510-369/+313
| | | | | | | so that we get a nice complete stacktrace when it hits the final handler Change-Id: Iec4fcc15a2a25c55f591b5e069dce3d010197a90
* jurt: encode(String) in URLEncoder has been deprecatedrbuj2014-09-151-1/+1
| | | | | | | Change-Id: I914985aa73653e0fb08200ddd06ad5b914087e3a Reviewed-on: https://gerrit.libreoffice.org/11446 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Make the "Mac-like" or "canonical" app bundle structure always used on OS XTor Lillqvist2014-09-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | In other words, only executable files go in the MacOS folder. Dynamic libraries and bundled frameworks (i.e., LibreOfficePython), and nothing else, go in the Frameworks folder, and all other files go in the Resources folder. Especially, note that Java class files and rc (.ini) files also go in Resources. Such an app bundle structure is what Apple strongly suggests one should use, and it has been hinted that future versions of code signing and/or Gatekeeper will require such a structure. There is still some ugliness thanks to traces of the historical separation of URE from "the office". Like there are two separate "unorc" files, one for URE, one for the LibreOffice application. IMHO, this should be cleaned up, but is probably controversial. (Eek! I now see there are actually *three* unorc files in the app bundle. Not intentional. Need to fix that later.) Change-Id: Idcf235038deb5b8e1d061734993e9f31869b7606
* set names on some Java threadsMichael Stahl2014-09-082-1/+3
| | | | Change-Id: I611821d5f84b440ba542a8d62a374df7b505de15
* Fix conditionStephan Bergmann2014-09-041-1/+10
| | | | Change-Id: I8e70a62959dbeecd571c15c5b6fac1a41511a3f6
* Poor hack for libjpipe.so under Clang -fsanitize=*Stephan Bergmann2014-09-044-1/+136
| | | | Change-Id: I5c1036448cfc543f55cf1aa303abcfda6a64f64e
* jurt: fix javadoc error: unexpected end tag: </p>rbuj2014-09-021-1/+1
| | | | | | | Change-Id: Ie8eb163793dc575558149320dceffcd92bdcfdd4 Reviewed-on: https://gerrit.libreoffice.org/11245 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* jurt: fix some javadoc errors for JDK 8rbuj2014-08-305-10/+10
| | | | | | | Change-Id: I998f5796d7a5f10f790a1e861b741c54d0f62c19 Reviewed-on: https://gerrit.libreoffice.org/11191 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* java: remove unnecessary constructor declarationsNoel Grandin2014-08-202-2/+0
| | | | | | | in the absence of any other constructors, the compiler will automatically generate a public no-arg constructor Change-Id: I70eca507cd8e16e33580b3398d41d70690bc2909