{"action":"created","issue":{"url":"https://api.github.com/repos/google/protobuf/issues/558","labels_url":"https://api.github.com/repos/google/protobuf/issues/558/labels{/name}","comments_url":"https://api.github.com/repos/google/protobuf/issues/558/comments","events_url":"https://api.github.com/repos/google/protobuf/issues/558/events","html_url":"https://github.com/google/protobuf/issues/558","id":92045893,"number":558,"title":"makeImmutable() and isMutable() symbol not found for protobuf 3 maps","user":{"login":"ohad7","id":9012046,"avatar_url":"https://avatars.githubusercontent.com/u/9012046?v=3","gravatar_id":"","url":"https://api.github.com/users/ohad7","html_url":"https://github.com/ohad7","followers_url":"https://api.github.com/users/ohad7/followers","following_url":"https://api.github.com/users/ohad7/following{/other_user}","gists_url":"https://api.github.com/users/ohad7/gists{/gist_id}","starred_url":"https://api.github.com/users/ohad7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohad7/subscriptions","organizations_url":"https://api.github.com/users/ohad7/orgs","repos_url":"https://api.github.com/users/ohad7/repos","events_url":"https://api.github.com/users/ohad7/events{/privacy}","received_events_url":"https://api.github.com/users/ohad7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-30T09:48:42Z","updated_at":"2015-06-30T21:20:20Z","closed_at":null,"body":"I'm getting a \"symbol not found\" compilation in the java compiler of protobuf-alpha-3. It is complaining that it can't find makeImmutable and isMutable. Here's the proto that I'm using : \r\n\r\n```\r\nmessage Query {\r\n    enum Sort {\r\n        ASC = 0;\r\n        DESC = 1;\r\n    }\r\n    map<string, StringList> criteria = 1;\r\n    string sort_by = 2;\r\n    uint32 limit = 3;\r\n    uint32 start = 4;\r\n    Sort sort = 5;\r\n}\r\n```\r\n\r\nAnd getting this error while compiling it for Java : \r\n\r\n```\r\nQuery.java:544: error: cannot find symbol\r\n      result.criteria_.makeImmutable();\r\n                      ^\r\n  symbol:   method makeImmutable()\r\n  location: variable criteria_ of type MapField<String,StringList>\r\n\r\nQuery.java:624: error: cannot find symbol\r\n      if (!criteria_.isMutable()) {\r\n                    ^\r\n  symbol:   method isMutable()\r\n  location: variable criteria_ of type MapField<String,StringList>\r\n```\r\n\r\nThis is the gradle build settings that I'm using : \r\n\r\n```\r\napply plugin: 'com.google.protobuf'\r\n\r\nbuildscript {\r\n    repositories {\r\n        mavenCentral()\r\n    }\r\n    dependencies {\r\n        classpath 'com.google.protobuf:protobuf-gradle-plugin:0.4.1'\r\n    }\r\n}\r\n\r\nprotocDep = \"com.google.protobuf:protoc:3.0.0-alpha-3\"\r\n```\r\nNot getting this error with 3.0.0-alpha-2.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/google/protobuf/issues/comments/117346892","html_url":"https://github.com/google/protobuf/issues/558#issuecomment-117346892","issue_url":"https://api.github.com/repos/google/protobuf/issues/558","id":117346892,"user":{"login":"ohad7","id":9012046,"avatar_url":"https://avatars.githubusercontent.com/u/9012046?v=3","gravatar_id":"","url":"https://api.github.com/users/ohad7","html_url":"https://github.com/ohad7","followers_url":"https://api.github.com/users/ohad7/followers","following_url":"https://api.github.com/users/ohad7/following{/other_user}","gists_url":"https://api.github.com/users/ohad7/gists{/gist_id}","starred_url":"https://api.github.com/users/ohad7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohad7/subscriptions","organizations_url":"https://api.github.com/users/ohad7/orgs","repos_url":"https://api.github.com/users/ohad7/repos","events_url":"https://api.github.com/users/ohad7/events{/privacy}","received_events_url":"https://api.github.com/users/ohad7/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T21:20:20Z","updated_at":"2015-06-30T21:20:20Z","body":"I use the same version for compilation and for runtime. In this case I haven't got to runtime since compilation is failing on the maps. When I use 3.0.0-alpha-2 everything works, but once I switch to alpha-3 I get this compilation error\r\n\r\nPerhaps I'm misunderstanding you though. "}}