Tagged articles
JDK bug
10 articles · Page 1 of 1
This article explains how a JDK bug in ScheduledExecutorService can cause a thread pool with coreSize 0 to enter a tight loop, driving CPU usage to 100 %, and shows the fixes introduced in JDK 9 as well as a related bug in scheduleWithFixedDelay.
CPU spikeJDK bugJava Concurrency
0 likes · 13 min read

This article examines Java file change monitoring, explains the limitations of a simple timestamp‑polling approach, details a JDK bug that loses millisecond precision, explores the built‑in WatchService and its fallback to polling, and demonstrates how Linux inotify provides a more reliable solution.
File MonitoringJDK bugJava
0 likes · 9 min read

This article walks through a simple Java file‑change watcher, reveals a JDK 8/9 bug where lastModified returns seconds instead of milliseconds, demonstrates the issue with test code, and presents a version‑file workaround to reliably detect updates.
BackendFile I/OFile Monitoring
0 likes · 11 min read

This article examines a real‑world file‑watching failure caused by a JDK bug, explains how Java's WatchService works (including its polling fallback), compares it with Linux's inotify mechanism, and presents practical work‑arounds for reliable configuration reloads in backend services.
BackendFile MonitoringJDK bug
0 likes · 10 min read

An in‑depth look at a real‑world file‑watching failure caused by a JDK timestamp bug, exploring Java’s WatchService implementation, its reliance on polling versus Linux’s inotify, and practical workarounds to ensure reliable configuration reloads across platforms.
File MonitoringJDK bugJava
0 likes · 10 min read

A Java program that formats "1900-01-01 08:00:00" unexpectedly prints "1900-01-01 08:05:43" due to historic Shanghai timezone offsets, and the article walks through the bug, related OpenJDK issues, Stack Overflow cases, and how different TZDB releases affect the result.
DATETIMEJDK bugJava
0 likes · 9 min read

The article explains a mysterious Java date‑formatting bug where parsing "1900-01-01 08:00:00" with SimpleDateFormat yields "1900-01-01 08:05:43", tracing the cause to historic Shanghai timezone offsets and changes in the IANA TZ database across JDK versions.
DATETIMEJDK bugJava
0 likes · 9 min read

An intriguing Java date‑parsing bug shows a 5 minute 43 second offset when formatting the year 1900, caused by historic Shanghai timezone offsets and changes in the TZDB; the article walks through code examples, bug reports, and the evolution of timezone data that explain this anomaly.
JDK bugSimpleDateFormatTZDB
0 likes · 9 min read

This article explains how miscalculating Hystrix semaphore quotas, combined with a JDK GCLocker‑initiated GC bug, can cause unexpected request rejections, and provides a proper method for computing concurrency limits and alternative buffering strategies such as Java semaphores and thread pools.
BackendGCHystrix
0 likes · 9 min read

The article examines a JDK bug where CopyOnWriteArrayList and ArrayList constructors contain comments about an issue (bug 6260652) that leads to unexpected array types from toArray(), causing ArrayStoreException, and shows how to avoid it with proper type checks or Arrays.copyOf.
ArrayStoreExceptionJDK bugJava
0 likes · 4 min read
![Why Does Java’s toArray Sometimes Return a Non‑Object[] and Cause ArrayStoreException?](https://wsrv.nl/?url=http%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2FPlhAddctCRVYktWHyNPnVTBonYibQIhdDq3Qw7r8oDd3UVnSk15QSdibF6vicaEytJULQhchUADXvl3PgZPUukZRA%2F0%3Fwx_fmt%3Djpeg)