{"action":"created","issue":{"url":"https://api.github.com/repos/INRIA/spoon/issues/869","repository_url":"https://api.github.com/repos/INRIA/spoon","labels_url":"https://api.github.com/repos/INRIA/spoon/issues/869/labels{/name}","comments_url":"https://api.github.com/repos/INRIA/spoon/issues/869/comments","events_url":"https://api.github.com/repos/INRIA/spoon/issues/869/events","html_url":"https://github.com/INRIA/spoon/issues/869","id":180108163,"number":869,"title":"spoon.compiler.ModelBuildingException: The type $ is already defined for DropWizard project","user":{"login":"rajithd-aurea","id":20821799,"avatar_url":"https://avatars.githubusercontent.com/u/20821799?v=3","gravatar_id":"","url":"https://api.github.com/users/rajithd-aurea","html_url":"https://github.com/rajithd-aurea","followers_url":"https://api.github.com/users/rajithd-aurea/followers","following_url":"https://api.github.com/users/rajithd-aurea/following{/other_user}","gists_url":"https://api.github.com/users/rajithd-aurea/gists{/gist_id}","starred_url":"https://api.github.com/users/rajithd-aurea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajithd-aurea/subscriptions","organizations_url":"https://api.github.com/users/rajithd-aurea/orgs","repos_url":"https://api.github.com/users/rajithd-aurea/repos","events_url":"https://api.github.com/users/rajithd-aurea/events{/privacy}","received_events_url":"https://api.github.com/users/rajithd-aurea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-29T17:08:51Z","updated_at":"2016-09-29T17:43:27Z","closed_at":null,"body":"I'm getting following error when try to analyze dropwizard (https://github.com/dropwizard/dropwizard) code in spoon.\r\n``` \r\nException in thread \"main\" spoon.compiler.ModelBuildingException: The type $ is already defined\r\n\tat spoon.support.compiler.jdt.JDTBasedSpoonCompiler.reportProblem(JDTBasedSpoonCompiler.java:391)\r\n\tat spoon.support.compiler.jdt.TreeBuilderRequestor.acceptResult(TreeBuilderRequestor.java:21)\r\n\tat spoon.support.compiler.jdt.TreeBuilderCompiler.buildUnits(TreeBuilderCompiler.java:56)\r\n\tat spoon.support.compiler.jdt.JDTBatchCompiler.getUnits(JDTBatchCompiler.java:121)\r\n\tat spoon.support.compiler.jdt.JDTBasedSpoonCompiler.buildSources(JDTBasedSpoonCompiler.java:222)\r\n\tat spoon.support.compiler.jdt.JDTBasedSpoonCompiler.build(JDTBasedSpoonCompiler.java:480)\r\n\tat spoon.Launcher.buildModel(Launcher.java:664)\r\n\tat spoon.Launcher.run(Launcher.java:616)\r\n\tat com.devfactory.runner.SpoonClassLoader.load(SpoonClassLoader.java:24)\r\n\tat com.devfactory.runner.WeakTestRunner.main(WeakTestRunner.java:164) \r\n```\r\n\r\nThis is the class loader code\r\n```java\r\nSpoonAPI spoon = new Launcher();\r\nspoon.addInputResource(sourceDirectory);\r\nspoon.getEnvironment().setNoClasspath(true);\r\nspoon.run();\r\n```\r\nIs this  a bug or am I doing something wrong ?\r\n"},"comment":{"url":"https://api.github.com/repos/INRIA/spoon/issues/comments/250539122","html_url":"https://github.com/INRIA/spoon/issues/869#issuecomment-250539122","issue_url":"https://api.github.com/repos/INRIA/spoon/issues/869","id":250539122,"user":{"login":"rajithd-aurea","id":20821799,"avatar_url":"https://avatars.githubusercontent.com/u/20821799?v=3","gravatar_id":"","url":"https://api.github.com/users/rajithd-aurea","html_url":"https://github.com/rajithd-aurea","followers_url":"https://api.github.com/users/rajithd-aurea/followers","following_url":"https://api.github.com/users/rajithd-aurea/following{/other_user}","gists_url":"https://api.github.com/users/rajithd-aurea/gists{/gist_id}","starred_url":"https://api.github.com/users/rajithd-aurea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajithd-aurea/subscriptions","organizations_url":"https://api.github.com/users/rajithd-aurea/orgs","repos_url":"https://api.github.com/users/rajithd-aurea/repos","events_url":"https://api.github.com/users/rajithd-aurea/events{/privacy}","received_events_url":"https://api.github.com/users/rajithd-aurea/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T17:43:27Z","updated_at":"2016-09-29T17:43:27Z","body":"@monperrus \r\nI clone this repo - https://github.com/dropwizard/dropwizard\r\nand gave /path/to/dropwizard/ as the sourceDirectory "}}
{"actor":{"display_login":"rajithd-aurea"}}