Details
Description
Static block source code gets associated with source code of subsequent method.
For example, with the following class:
public class Sample {
static { /* static body */ }
public Sample() { /* body */ }
}
Calling m.getSourceCode() on the constructor gives:
/* static body / / body */
The attached patch contains a (failing) test case that reproduces this.
bug found and fixed.See patch. The path with the test should succeed the next time