adoptium / adoptium/bumblebench

NoSuchMethodException: sun.misc.IOUtils.readAllBytes on java 8

Open
#27 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
27
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Works with jdk 10 and jdk 14, but not java 8
```
java -jar BumbleBench.jar StringEqualsBench
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: sun.misc.IOUtils.readAllBytes(java.io.InputStream)
at net.adoptopenjdk.bumblebench.core.Util.(Util.java:44)
Caused by: java.lang.NoSuchMethodException: sun.misc.IOUtils.readAllBytes(java.io.InputStream)
at java.lang.Class.getDeclaredMethod(Class.java:2130)
at net.adoptopenjdk.bumblebench.core.Util.(Util.java:36)
```
java version
```
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
```

Contributor guide

Open the contributing guide

Research direction

Start with Util.java at the stack-trace locations around lines 36 and 44, then run java -jar BumbleBench.jar StringEqualsBench on the reported OpenJDK 8 version. Done means the StringEqualsBench command starts without the NoSuchMethodException while preserving compatibility with the newer JDK versions mentioned.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.