• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pmd / pmd / 671
79%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2026 03:33PM UTC
Jobs 1
Files 2183
Run time 6min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2026 03:07PM UTC coverage: 79.2% (-0.005%) from 79.205%
671

push

github

web-flow
[java] fix: IndexOutOfBoundsException for type annotations on inner class method signatures (#6866)

* [java] fix: IOOBE for type annotations on inner class method signatures

The while-loop in handleEnclosingType() was missing a bounds check on
the TypePath length. ASM's TypePath.getStep(i) does pure array
arithmetic with no bounds check of its own.

When the loop consumed the last valid INNER_TYPE step and called getStep
one past the end, it read the high byte of the following type_index
field (the CP index of the annotation type).

That byte equals 1 (= INNER_TYPE) when the CP index is in [256, 511], so
the loop over-incremented selectionDepth and crashed on
enclosingTypes.get(-1).

The regression test uses TestClass, which has 300 dummy fields to push
the Ann descriptor past CP index 255, reliably reproducing the crash.

Fixes #5041.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* [docs] Update release notes

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Sören Glimm <git@uncleowen.de>

19235 of 25223 branches covered (76.26%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

41682 of 51692 relevant lines covered (80.64%)

0.81 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
29.17
-16.67% pmd-core/src/main/java/net/sourceforge/pmd/lang/metrics/LanguageMetricsProvider.java
Jobs
ID Job ID Ran Files Coverage
1 671.1 16 Jul 2026 03:33PM UTC 2183
79.2
GitHub Action Run
Source Files on build 671
  • Tree
  • List 2183
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #671
  • 609dd4ef on github
  • Prev Build on main (#670)
  • Next Build on main (#672)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc