{"action":"closed","issue":{"url":"https://api.github.com/repos/ChristianPSchenk/JRTrace/issues/29","labels_url":"https://api.github.com/repos/ChristianPSchenk/JRTrace/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/ChristianPSchenk/JRTrace/issues/29/comments","events_url":"https://api.github.com/repos/ChristianPSchenk/JRTrace/issues/29/events","html_url":"https://github.com/ChristianPSchenk/JRTrace/issues/29","id":66452604,"number":29,"title":"Support variables with a \"local\" scope","user":{"login":"ChristianPSchenk","id":10105136,"avatar_url":"https://avatars.githubusercontent.com/u/10105136?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianPSchenk","html_url":"https://github.com/ChristianPSchenk","followers_url":"https://api.github.com/users/ChristianPSchenk/followers","following_url":"https://api.github.com/users/ChristianPSchenk/following{/other_user}","gists_url":"https://api.github.com/users/ChristianPSchenk/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianPSchenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianPSchenk/subscriptions","organizations_url":"https://api.github.com/users/ChristianPSchenk/orgs","repos_url":"https://api.github.com/users/ChristianPSchenk/repos","events_url":"https://api.github.com/users/ChristianPSchenk/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianPSchenk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-05T16:02:59Z","updated_at":"2015-04-05T16:03:29Z","closed_at":"2015-04-05T16:03:29Z","body":"Sometimes it might be useful to use variables that will have the scope of the current target function. \r\n\r\nThe concept to support that is:\r\n\r\n- XClass supports a instantiationpolicy=true attribute.\r\n- if set, a local variable with a new instance of the JRTrace class will be created for each method and the tracing code will be called on this instance instead of using the \"global\" or \"classloader\"-scoped instance.\r\n- This allows, using all fields of the JRTrace class with the same semantics as local variables.\r\n"}}