{"action":"created","issue":{"url":"https://api.github.com/repos/bodiam/markdown-to-asciidoc/issues/24","repository_url":"https://api.github.com/repos/bodiam/markdown-to-asciidoc","labels_url":"https://api.github.com/repos/bodiam/markdown-to-asciidoc/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/bodiam/markdown-to-asciidoc/issues/24/comments","events_url":"https://api.github.com/repos/bodiam/markdown-to-asciidoc/issues/24/events","html_url":"https://github.com/bodiam/markdown-to-asciidoc/issues/24","id":144477946,"number":24,"title":"Help needed using your library with Groovy (Problems with ASM?)","user":{"login":"RobWin","id":5815046,"avatar_url":"https://avatars.githubusercontent.com/u/5815046?v=3","gravatar_id":"","url":"https://api.github.com/users/RobWin","html_url":"https://github.com/RobWin","followers_url":"https://api.github.com/users/RobWin/followers","following_url":"https://api.github.com/users/RobWin/following{/other_user}","gists_url":"https://api.github.com/users/RobWin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobWin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobWin/subscriptions","organizations_url":"https://api.github.com/users/RobWin/orgs","repos_url":"https://api.github.com/users/RobWin/repos","events_url":"https://api.github.com/users/RobWin/events{/privacy}","received_events_url":"https://api.github.com/users/RobWin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-30T06:32:31Z","updated_at":"2016-03-30T07:03:32Z","closed_at":null,"body":"Hi Erik,\r\n\r\nI'm using your great library in [Swagger2Markup](https://github.com/Swagger2Markup/swagger2markup) now.\r\nIt works fine so far, but I have some issues in my [swagger2markup-gradle-plugin](https://github.com/Swagger2Markup/swagger2markup-gradle-plugin). \r\n\r\nI get the following exception:\r\n\r\n```\r\njava.lang.RuntimeException: Error creating extended parser class: null\r\n\r\n\tat org.parboiled.Parboiled.createParser(Parboiled.java:58)\r\n\tat org.pegdown.PegDownProcessor.<init>(PegDownProcessor.java:92)\r\n\tat org.pegdown.PegDownProcessor.<init>(PegDownProcessor.java:61)\r\n\tat nl.jworks.markdown_to_asciidoc.Converter.convertMarkdownToAsciiDoc(Converter.java:42)\r\n....\r\nCaused by: java.lang.IllegalStateException\r\n\tat org.parboiled.transform.ParserClassNode.<init>(ParserClassNode.java:41)\r\n\tat org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:43)\r\n\tat org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:38)\r\n\tat org.parboiled.Parboiled.createParser(Parboiled.java:54)\r\n\t... 17 more\r\n```\r\n\r\n`org.parboiled.transform.ParserClassNode`extends `org.objectweb.asm.tree.ClassNode`\r\n\r\nWhen I look in Intellj at the decompiled code of  `ClassNode`, I can find the code snippet which seems to be executed.\r\n\r\n```\r\npublic ClassNode() {\r\n        this(327680);\r\n        if(this.getClass() != class$org$objectweb$asm$tree$ClassNode) {\r\n            throw new IllegalStateException();\r\n        }\r\n    }\r\n```\r\n\r\nParboiled uses ASM 4.1 and when I look at the [source code](http://websvn.ow2.org/filedetails.php?repname=asm&path=%2Ftags%2FASM_4_1%2Fsrc%2Forg%2Fobjectweb%2Fasm%2Ftree%2FClassNode.java) I can't find this code snippet. \r\n\r\nAs far as I know, Groovy uses ASM internally.\r\n\r\nDid you ever faced similar issues with Groovy and ASM when using your library?\r\nI'm using Gradle 2.11 which uses Groovy-all 2.3.10. But groovy-all brings ASM shaded.\r\n\r\nKind regards,\r\n\r\nRobert\r\n"},"comment":{"url":"https://api.github.com/repos/bodiam/markdown-to-asciidoc/issues/comments/203280972","html_url":"https://github.com/bodiam/markdown-to-asciidoc/issues/24#issuecomment-203280972","issue_url":"https://api.github.com/repos/bodiam/markdown-to-asciidoc/issues/24","id":203280972,"user":{"login":"glaforge","id":47907,"avatar_url":"https://avatars.githubusercontent.com/u/47907?v=3","gravatar_id":"","url":"https://api.github.com/users/glaforge","html_url":"https://github.com/glaforge","followers_url":"https://api.github.com/users/glaforge/followers","following_url":"https://api.github.com/users/glaforge/following{/other_user}","gists_url":"https://api.github.com/users/glaforge/gists{/gist_id}","starred_url":"https://api.github.com/users/glaforge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glaforge/subscriptions","organizations_url":"https://api.github.com/users/glaforge/orgs","repos_url":"https://api.github.com/users/glaforge/repos","events_url":"https://api.github.com/users/glaforge/events{/privacy}","received_events_url":"https://api.github.com/users/glaforge/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T07:03:32Z","updated_at":"2016-03-30T07:03:32Z","body":"The error doesn't seem to be related to Groovy, so not sure I can be of much help.\r\nGroovy indeed uses ASM too, but it's shaded, in its own package, so there's no possible clash with other ASM classes that could be on the classpath."}}