Details
Description
Static block source code gets associated with source code of subsequent method.
For example, with the following class:
public class Sample {
static
public Sample()
{ /* body */ }}
Calling m.getSourceCode() on the constructor gives:
/* static body / / body */
The attached patch contains a (failing) test case that reproduces this.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | Qdox-145.patch [ 39196 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 1.8 [ 14826 ] |
bug found and fixed.See patch. The path with the test should succeed the next time