{"action":"closed","issue":{"url":"https://api.github.com/repos/JesusFreke/smali/issues/359","labels_url":"https://api.github.com/repos/JesusFreke/smali/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/JesusFreke/smali/issues/359/comments","events_url":"https://api.github.com/repos/JesusFreke/smali/issues/359/events","html_url":"https://github.com/JesusFreke/smali/issues/359","id":123522443,"number":359,"title":"BuilderClassDef's public getAnnotations returns package-private BuilderAnnotationSet","user":{"login":"CalebFenton","id":1356658,"avatar_url":"https://avatars.githubusercontent.com/u/1356658?v=3","gravatar_id":"","url":"https://api.github.com/users/CalebFenton","html_url":"https://github.com/CalebFenton","followers_url":"https://api.github.com/users/CalebFenton/followers","following_url":"https://api.github.com/users/CalebFenton/following{/other_user}","gists_url":"https://api.github.com/users/CalebFenton/gists{/gist_id}","starred_url":"https://api.github.com/users/CalebFenton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalebFenton/subscriptions","organizations_url":"https://api.github.com/users/CalebFenton/orgs","repos_url":"https://api.github.com/users/CalebFenton/repos","events_url":"https://api.github.com/users/CalebFenton/events{/privacy}","received_events_url":"https://api.github.com/users/CalebFenton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-22T17:24:17Z","updated_at":"2015-12-22T19:25:41Z","closed_at":"2015-12-22T19:25:41Z","body":"Sorry if this is a stupid question, but I'm having trouble using [`BuilderClassDef#getAnnotations()`](https://github.com/JesusFreke/smali/blob/master/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/BuilderClassDef.java#L98). It's a public method but it returns a package-private `BuilderAnnotationSet`. This seems awkward. Also, `BuilderAnnotation` is package-private. This is the best I can think of:\r\n\r\n        for (BaseAnnotation annotation : classDef.getAnnotations()) {\r\n\r\n        }\r\n\r\nAm I doing it wrong? In case you're curious, I'm using a bytecode generation library to convert dexlib2 class definitions into actual JVM class objects and I want to make the classes look as real as possible. I built a special purpose virtual machine for executing dalvik and I think it would be easier to try and pass around actual class objects."}}