I'd like to find out about the size of an array being allocated by looking at the bytecode, if that information is known at compile time, of course.
Background: I want to write a FindBugs detector (which looks at the compiled bytecode) and report certain occurences of array allocations. In order to filter out false positives I am not interested in "small" arrays, but only ones whose size is not available at compile time or that are larger than a configurable threshold.
As the FindBugs sourcecode is not too heavily documented, I am looking for some pointers on how to get started - maybe there already is a dectector doing something similar that I could look at.