[
http://jira.codehaus.org/browse/QDOX-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed QDOX-145.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.8
patch applied
> Static block source code gets associated with source code of subsequent method
> ------------------------------------------------------------------------------
>
> Key: QDOX-145
> URL: http://jira.codehaus.org/browse/QDOX-145
> Project: QDox
> Issue Type: Bug
> Components: Parser
> Affects Versions: 1.6.1, 1.6.2, 1.6.3, 1.7
> Reporter: Elliot Schwartz
> Fix For: 1.8
>
> Attachments: Qdox-145.patch, qdox-static-test-case.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email