eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
141 stars 107 forks source link

JDT Core throws NullPointerException: Cannot read the array length because "argumentBindings" is null #2407

Closed stephan-herrmann closed 4 weeks ago

stephan-herrmann commented 1 month ago

fixes #2386 and #2399

stephan-herrmann commented 1 month ago

The root cause is indeed the same for #2386 and #2399, and from a pure compiler p.o.v. it would be suitable to refuse any of this annotation stuff when the hierarchy of the current type is inconsistent (like unresolved types, or a cycle). Still a failure in JavaSearchBugs8Tests.testBug427677() advised me to keep trying to handle annotations as far as possible, so that search can find references even in buggy code.