Commit Graph

48 Commits

Author SHA1 Message Date
A Pottinger
c14695476e Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train.
Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train using a squash of sampottinger processing fork's java11 branch.

**Primary required changes:**
Some changes directly support OpenJFX / OpenJDK 11:

 - Response to image loading changes caused by [JEP 320](https://openjdk.java.net/jeps/320)
 - Use of jmodules as necessitated by [JEP 261](https://openjdk.java.net/jeps/261)
 - Reponse to largely changed file paths caused by [JEP 220](https://openjdk.java.net/jeps/220).
 - Modifications in build system related to AdoptOpenJDK and Java 11 which have a different naming structure for downloads.
 - Allowing use of non-Oracle Java within internal Processing checks.

**Secondary required changes:**
There were some secondary required changes that impacted the usability of Processing after having moved to OpenJFX / OpenJDK 11:

 - Removal of com.apple.eawt calls related to [JEP 272](http://openjdk.java.net/jeps/272)
 - Response to HiDPI support on Windows and Linux in [JEP 263](https://openjdk.java.net/jeps/263)
- Removal of `java.ext.dirs`. Would be forced by [JEP 220](http://openjdk.java.net/jeps/220).
 - Due to bugs on Windows, updated the JNA jars.
 - Changes in downloader build tasks to support AdoptOpenJDK and OpenJFX.
 - Updated org.eclipse.* / equinox jars.
 - Some optimization around size of distribution.
 - Update of AppBundler.
 - Some changes in formulation of classpath and modifications in PreprocessingService given [JEP 261](https://openjdk.java.net/jeps/261).

**Incidental changes:**
This was (ahem) a bit of a larger PR with the above modifications. So, I wanted to introduce automated tests when possible and convenient along with a few changes for platform sustainability in order to support development:

 - Addition of cross-building capability (!) made possible by AdoptOpenJDK.
 - Addition of mockito for testing.
 - Upgrade of junit.
 - Addition of ant-contrib.
 - Standardized nomenclature around JRE / JDK in `build/build.xml`
 - Deduplication of code in `jre/build.xml`.
 - Addition of JavaDoc in a few places.
 - Some refactoring of PImage / Shape to support increased testing and readability in image manipulation code.
2019-10-05 20:49:33 -07:00
REAS
dc322fb48a Remove redundant params for Server reference 2019-07-25 12:47:22 -07:00
Jakub Valtar
404990f29f Fix Net library buffer sizes
Because I don't know how to count...
2018-02-02 17:14:56 +01:00
Jakub Valtar
d887779eb6 Net-client: perf tuning - make read buf the size of socket receive buf 2018-01-22 20:28:09 +01:00
Jakub Valtar
fe465fe4de Net-client: remove unneeded synchronization block 2018-01-22 19:50:48 +01:00
Jakub Valtar
bb6c9a568a Net-server: remove suspicious sleep 2018-01-22 19:50:06 +01:00
Jakub Valtar
f6b08df336 Net-server: call clientEvent() of the sketch when received data from a client 2018-01-22 19:34:21 +01:00
Jakub Valtar
2b1cd66f83 Net: unwrap the exception if it came from the user code 2018-01-22 13:44:43 +01:00
Jakub Valtar
0d12c46825 Net-server: remove extra array creation 2018-01-21 22:32:16 +01:00
Jakub Valtar
b692215775 Net-server: properly synchronize clients array 2018-01-21 22:30:46 +01:00
Jakub Valtar
f76d3c4f80 Net-client: remove extra catch block
Handled by IOException block (it's a superclass of ConnectException and does the same thing).
2018-01-21 22:30:46 +01:00
Jakub Valtar
0e12d1175e Net-client: remove unnecessary array creation 2018-01-21 22:30:45 +01:00
Jakub Valtar
aba056cf96 Net-client: set max buffer size 2018-01-21 22:30:36 +01:00
Jakub Valtar
e7f6e1b5b0 Net-client: read bytes to a read buffer instead of one by one 2018-01-21 22:28:01 +01:00
Jakub Valtar
e64a283a00 Net-client: compact the buffer if possible instead of resizing 2018-01-21 17:03:55 +01:00
Jakub Valtar
f140299e48 Net-client: synchronize access to all concurrently modified fields 2018-01-21 16:42:45 +01:00
Jakub Valtar
05a2819a58 Net-client: use final field for lock 2018-01-21 16:40:47 +01:00
kfeuz
44785f6bd9 Added readBytes(max) to net library 2016-02-18 22:24:44 -07:00
REAS
808aa79127 Remove rotate(x, y, z) from Reference 2015-09-16 20:19:17 -07:00
Ben Fry
382e03ac27 merge fixes for #1400 with updates to #3088 2015-04-01 11:38:52 -04:00
Ben Fry
598613300d Merge pull request #3088 from kfeuz/client_memory_leak
Prevent memory leak of Client by unregistering parent dispose method
2015-04-01 11:33:36 -04:00
Kyle Feuz
3f131d7975 Check for dead clients while checking for available messages 2015-02-06 11:54:52 -07:00
kfeuz
a2cc6a074d Prevent possible duplicate deregistering 2015-02-05 00:34:14 -07:00
kfeuz
4716319471 Prevent memory leak by unregistering parent dispose method 2015-02-05 00:24:08 -07:00
Ben Fry
96b9f8dc21 remove unnecessary parens 2014-11-14 15:08:52 -07:00
Ben Fry
ee9584bf53 Merge pull request #2588 from kfeuz/Issue2364
Implements the active() method for Serial and Server (Issue #2364).
2014-11-14 15:01:17 -07:00
Ben Fry
c832bde934 Merge pull request #2922 from kfeuz/Issue2576
Fixes NPE when calling ip() on disconnected clients.
2014-11-14 14:43:04 -07:00
Ben Fry
badd307ec9 Merge pull request #2578 from kfeuz/Issue2577
Fixes NPE when writing to disconnected client, Issue #2577
2014-11-14 14:31:14 -07:00
Kyle Feuz
3f01414d01 Changed ip() to return null when client has disconnected 2014-11-01 23:08:58 -06:00
Ben Fry
bff235dcb9 throw exception if Server constructor fails 2014-07-30 21:37:12 -04:00
Kyle Feuz
6274986bd6 Implements the active() method for Serial and Server (Issue #2364). 2014-06-10 23:22:08 -07:00
Kyle Feuz
94e01acb7b Fixes Issue #2576 NPE when calling ip() on disconnected clients. 2014-06-10 01:37:46 -07:00
Kyle Feuz
3a7a1c07b5 Fixes NPE when writing to disconnected client, Issue #2577 2014-06-09 23:06:17 -07:00
Ben Fry
95de8998cb add Server bind option (#2356) and todo notes 2014-05-10 20:22:44 -04:00
Kyle Feuz
7ae40bed1a Keep basic error reporting 2014-04-21 16:24:30 -07:00
Kyle Feuz
43d1d5a2fe Fix for #Issue74 2014-04-21 15:55:59 -07:00
Ben Fry
ad583897a1 other tweaks to server class 2014-04-19 04:45:06 -04:00
Kyle Feuz
fca59082a8 Fixed missing disconnect for some clients 2014-04-18 15:48:14 -07:00
Kyle Feuz
0b50a98219 Implements disconnectEvent for the Server code as requested in Issue #2133 2014-04-18 01:42:54 -07:00
Casey Reas
c89c3311f6 Remove Puff example 2013-04-25 18:07:10 -07:00
benfry
8b771c0d98 cleaning up stop/dispose events 2012-11-25 17:41:33 +00:00
benfry
772597e99b add ip() method to Server (issue 1228) 2012-11-24 18:43:41 +00:00
benfry
728a45dae5 apply patch for clientEvent() (issue 189) 2012-11-24 18:43:10 +00:00
benfry
0f776dfd24 notes and updating to registerMethod() 2012-10-26 18:12:51 +00:00
sansumbrella
7e83cfc9c7 @see_external tag implemented. See todo.txt for more info. Allows for proper documentation of events in libraries. 2011-09-23 01:34:03 +00:00
Casey Reas
9c6f6858f4 Removing old files for 3D and Library examples 2011-09-06 17:56:47 +00:00
Casey Reas
adfaed5e1a Basic 2.0 Ref changes 2011-07-27 16:04:21 +00:00
benfry
d04cfbb90b moving to new structure 2011-01-26 19:10:26 +00:00