openhab-core/itests
Wouter Born 648cfac66d Avoid ByteBuffer incompatibility when compiling with JDK9+ (#686)
Incompatible code can be used/generated when using JDK8 on the command line and JDK11 in Eclipse (or vice versa).

The explanation for this is given in https://github.com/apache/felix/pull/114 :

Java 9 introduces overridden methods with covariant return types for the following methods in java.nio.ByteBuffer:

* position​(int newPosition)
* limit​(int newLimit)
* flip​()
* clear​()
* mark​()
* reset​()
* rewind​()

In Java 9 they all now return ByteBuffer, whereas the methods they override return Buffer,
resulting in exceptions like this when executing on Java 8 and lower:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer
This is because the generated byte code includes the static return type of the method, which is not found on Java 8 and lower because the overloaded methods with covariant return types don't exist (the issue appears even with source and target 8 or lower in compilation parameters).
The solution is to cast ByteBuffer instances to Buffer before calling the method.

Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-31 14:45:29 +02:00
..
org.openhab.core.audio.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.auth.oauth2client.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.automation.integration.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.automation.module.core.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.automation.module.script.defaultscope.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.automation.module.script.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.automation.module.timer.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.automation.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.binding.xml.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.compat1x.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.config.core.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.config.discovery.mdns.tests Increase stability of MDNSDiscoveryServiceOSGiTest by increasing timeouts to 5s (#687) 2019-03-31 13:38:49 +02:00
org.openhab.core.config.discovery.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.config.discovery.usbserial.linuxsysfs.tests Use openHAB license headers (#632) 2019-03-06 16:10:00 +01:00
org.openhab.core.config.discovery.usbserial.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.config.dispatch.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.config.xml.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.io.http.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.io.net.tests Avoid ByteBuffer incompatibility when compiling with JDK9+ (#686) 2019-03-31 14:45:29 +02:00
org.openhab.core.io.rest.core.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.io.rest.sse.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.io.rest.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.io.transport.mqtt.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.io.transport.upnp.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.magic.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.model.core.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.model.item.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.model.lsp.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.model.persistence.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.model.rule.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.model.script.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.model.thing.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.model.thing.testsupport Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.semantics.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.storage.json.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.tests Adding DataAmount (bit and derivatives) and DataTransferRates (bits per second) (#681) 2019-03-30 21:43:15 +01:00
org.openhab.core.thing.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.thing.xml.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.transform.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.ui.icon.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.ui.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
org.openhab.core.voice.tests Ignore and remove Eclipse project specific settings (#677) 2019-03-26 13:04:09 +01:00
itest-common.bndrun workround m2e indexer hickup, build local openhab index (#584) 2019-02-18 16:29:55 +01:00
pom.xml do not deploy integration tests (#654) 2019-03-14 19:47:54 +01:00