{"action":"created","issue":{"url":"https://api.github.com/repos/ngs-doo/dsl-json/issues/8","repository_url":"https://api.github.com/repos/ngs-doo/dsl-json","labels_url":"https://api.github.com/repos/ngs-doo/dsl-json/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ngs-doo/dsl-json/issues/8/comments","events_url":"https://api.github.com/repos/ngs-doo/dsl-json/issues/8/events","html_url":"https://github.com/ngs-doo/dsl-json/issues/8","id":166243407,"number":8,"title":"apt fails at processing fields starting with _","user":{"login":"fabienrenaud","id":3112233,"avatar_url":"https://avatars.githubusercontent.com/u/3112233?v=3","gravatar_id":"","url":"https://api.github.com/users/fabienrenaud","html_url":"https://github.com/fabienrenaud","followers_url":"https://api.github.com/users/fabienrenaud/followers","following_url":"https://api.github.com/users/fabienrenaud/following{/other_user}","gists_url":"https://api.github.com/users/fabienrenaud/gists{/gist_id}","starred_url":"https://api.github.com/users/fabienrenaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabienrenaud/subscriptions","organizations_url":"https://api.github.com/users/fabienrenaud/orgs","repos_url":"https://api.github.com/users/fabienrenaud/repos","events_url":"https://api.github.com/users/fabienrenaud/events{/privacy}","received_events_url":"https://api.github.com/users/fabienrenaud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-19T04:02:19Z","updated_at":"2016-07-25T23:02:36Z","closed_at":"2016-07-24T21:58:09Z","body":"100% repro with the 2 simple following files:\r\n\r\n**build.gradle**\r\n\r\n    plugins {\r\n        id \"net.ltgt.apt\" version \"0.6\"\r\n    }\r\n\r\n    apply plugin: 'java'\r\n\r\n    sourceCompatibility = 1.8\r\n    targetCompatibility = 1.8\r\n\r\n    repositories {\r\n        mavenCentral()\r\n    }\r\n\r\n    sourceSets {\r\n      main {\r\n        java {\r\n          srcDir 'src'\r\n        }\r\n      }\r\n    }\r\n\r\n    dependencies {\r\n        // DSL-json\r\n        compile group: 'com.dslplatform', name: 'dsl-json', version: '1.1.1'\r\n        apt group: 'com.dslplatform', name: 'dsl-json-processor', version: '1.2'\r\n\r\n        // Test\r\n        testCompile group: 'junit', name: 'junit', version: '4.12'\r\n    }\r\n\r\n\r\n    test {\r\n        testLogging {\r\n            exceptionFormat = 'full'\r\n            // showStandardStreams = true\r\n        }\r\n    }\r\n\r\nin src/thepack/TheObj.java\r\n\r\n    package thepack;\r\n\r\n    import com.dslplatform.json.CompiledJson;\r\n\r\n    @CompiledJson\r\n    public class TheObj {\r\n\r\n      public String _id;\r\n\r\n    }\r\n\r\nthen: `gradle build`\r\n\r\n    :compileJava\r\n    ~/dsljsonbug/build/generated/source/apt/main/dsl_json/json/ExternalSerialization.java:44: error: cannot find symbol\r\n                if (self.id != null) {\r\n                        ^\r\n      symbol:   variable id\r\n      location: variable self of type TheObj\r\n    ~/dsljsonbug/build/generated/source/apt/main/dsl_json/json/ExternalSerialization.java:47: error: cannot find symbol\r\n                    sw.writeString(self.id);\r\n                                       ^\r\n      symbol:   variable id\r\n      location: variable self of type TheObj\r\n    ~/dsljsonbug/build/generated/source/apt/main/dsl_json/json/ExternalSerialization.java:55: error: cannot find symbol\r\n                if (self.id != null) {\r\n                        ^\r\n      symbol:   variable id\r\n      location: variable self of type TheObj\r\n    ~/dsljsonbug/build/generated/source/apt/main/dsl_json/json/ExternalSerialization.java:57: error: cannot find symbol\r\n                    sw.writeString(self.id);\r\n                                       ^\r\n      symbol:   variable id\r\n      location: variable self of type TheObj\r\n    ~/dsljsonbug/build/generated/source/apt/main/dsl_json/json/ExternalSerialization.java:138: error: cannot find symbol\r\n            instance.id = _id_;\r\n                    ^\r\n      symbol:   variable id\r\n      location: variable instance of type TheObj\r\n    5 errors\r\n    :compileJava FAILED\r\n\r\n    FAILURE: Build failed with an exception.\r\n\r\n    * What went wrong:\r\n    Execution failed for task ':compileJava'.\r\n    > Compilation failed; see the compiler error output for details.\r\n\r\n    * Try:\r\n    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\n    BUILD FAILED\r\n\r\n    Total time: 6.618 secs\r\n\r\nVersions:\r\n\r\n    > java -version\r\n    java version \"1.8.0_45\"\r\n    Java(TM) SE Runtime Environment (build 1.8.0_45-b14)\r\n    Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)\r\n\r\n    > mono --version\r\n    Mono JIT compiler version 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 30 13:57:48 PDT 2016)\r\n    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com\r\n      TLS:           normal\r\n      SIGSEGV:       altstack\r\n      Notification:  kqueue\r\n      Architecture:  amd64\r\n      Disabled:      none\r\n      Misc:          softdebug\r\n      LLVM:          supported, not enabled.\r\n      GC:            sgen"},"comment":{"url":"https://api.github.com/repos/ngs-doo/dsl-json/issues/comments/235112733","html_url":"https://github.com/ngs-doo/dsl-json/issues/8#issuecomment-235112733","issue_url":"https://api.github.com/repos/ngs-doo/dsl-json/issues/8","id":235112733,"user":{"login":"fabienrenaud","id":3112233,"avatar_url":"https://avatars.githubusercontent.com/u/3112233?v=3","gravatar_id":"","url":"https://api.github.com/users/fabienrenaud","html_url":"https://github.com/fabienrenaud","followers_url":"https://api.github.com/users/fabienrenaud/followers","following_url":"https://api.github.com/users/fabienrenaud/following{/other_user}","gists_url":"https://api.github.com/users/fabienrenaud/gists{/gist_id}","starred_url":"https://api.github.com/users/fabienrenaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabienrenaud/subscriptions","organizations_url":"https://api.github.com/users/fabienrenaud/orgs","repos_url":"https://api.github.com/users/fabienrenaud/repos","events_url":"https://api.github.com/users/fabienrenaud/events{/privacy}","received_events_url":"https://api.github.com/users/fabienrenaud/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T23:02:36Z","updated_at":"2016-07-25T23:02:36Z","body":"I actually already had the ThreadLocal optimization for dsl-json since it is documented on your README :) but your comment made me realize I should just do that for all the benchmarks where it makes sense.\r\n\r\nI reran all the benchmarks with dsljson and a few extra libs and the least I can say is that you killed it: https://github.com/fabienrenaud/java-json-benchmark \r\n\r\nCongratulations! "}}
{"actor":{"display_login":"fabienrenaud"}}