arduino / arduino/Arduino

Arduino 1:1.8.9-3(compiled with jdk9?) ByteBuffer breaks libraries

Open
#8,903 33 comments 14 reactions 0 assignees View on GitHub
Component: IDE Type: Bug Upstream notified
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

Using [RF24 library](https://github.com/nRF24/RF24) for nRF24L01
upgraded arduino (1:1.8.9-1 -> 1:1.8.9-3)
OS: arch linux

Following error is thrown after upgrade
Exception in thread "EventThread /dev/ttyUSB1" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
at processing.app.Serial.serialEvent(Serial.java:185)
at jssc.SerialPort$LinuxEventThread.run(SerialPort.java:1299)

Relevant github issue?
https://github.com/apache/felix/pull/114

Contributor guide

Open the contributing guide

Research direction

Start with processing.app.Serial.serialEvent(Serial.java:185) and compare the ByteBuffer API usage with the linked Apache Felix pull request. Reproduce the failure on Arduino IDE 1.8.9-3 under Arch Linux using the RF24 library and verify that serial events no longer raise the reported NoSuchMethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.