{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/16097","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/16097/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/16097/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/16097/events","html_url":"https://github.com/elastic/elasticsearch/issues/16097","id":127494655,"number":16097,"title":"Build on Windows 2012 fails with compilation failure from assigning to final variables","user":{"login":"cbuescher","id":10398885,"avatar_url":"https://avatars.githubusercontent.com/u/10398885?v=3","gravatar_id":"","url":"https://api.github.com/users/cbuescher","html_url":"https://github.com/cbuescher","followers_url":"https://api.github.com/users/cbuescher/followers","following_url":"https://api.github.com/users/cbuescher/following{/other_user}","gists_url":"https://api.github.com/users/cbuescher/gists{/gist_id}","starred_url":"https://api.github.com/users/cbuescher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbuescher/subscriptions","organizations_url":"https://api.github.com/users/cbuescher/orgs","repos_url":"https://api.github.com/users/cbuescher/repos","events_url":"https://api.github.com/users/cbuescher/events{/privacy}","received_events_url":"https://api.github.com/users/cbuescher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/build","name":"build","color":"5319e7"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/jenkins","name":"jenkins","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-19T17:14:07Z","updated_at":"2016-01-19T17:17:26Z","closed_at":null,"body":"Compile issue that seems only to happen on Windows jdk as seen here:\r\n\r\nhttp://build-us-00.elastic.co/job/es_core_master_window-2012/2315/\r\n\r\n```\r\nCompiling with Java command line compiler 'y:\\jdk8\\8u11\\bin\\javac'.\r\nStarting process 'command 'y:\\jdk8\\8u11\\bin\\javac''. Working directory: Y:\\jenkins\\workspace\\es_core_master_window-2012\\core Command: y:\\jdk8\\8u11\\bin\\javac -J-Xmx1g @Y:\\jenkins\\workspace\\es_core_master_window-2012\\core\\build\\tmp\\compileJava\\java-compiler-args.txt\r\nSuccessfully started process 'command 'y:\\jdk8\\8u11\\bin\\javac''\r\nY:\\jenkins\\workspace\\es_core_master_window-2012\\core\\src\\main\\java\\org\\elasticsearch\\cluster\\metadata\\AutoExpandReplicas.java:44: error: cannot assign a value to final variable min\r\n            min = Integer.parseInt(sMin);\r\n            ^\r\nY:\\jenkins\\workspace\\es_core_master_window-2012\\core\\src\\main\\java\\org\\elasticsearch\\cluster\\metadata\\AutoExpandReplicas.java:50: error: cannot assign a value to final variable max\r\n            max = Integer.MAX_VALUE;\r\n            ^\r\nY:\\jenkins\\workspace\\es_core_master_window-2012\\core\\src\\main\\java\\org\\elasticsearch\\cluster\\metadata\\AutoExpandReplicas.java:53: error: cannot assign a value to final variable max\r\n                max = Integer.parseInt(sMax);\r\n                ^\r\n```\r\n\r\nThe same code compiles fine on other systems. I'll go ahead and remove the offending `final` modifier for now, but leave a comment linking to this issue."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/172923236","html_url":"https://github.com/elastic/elasticsearch/issues/16097#issuecomment-172923236","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/16097","id":172923236,"user":{"login":"javanna","id":832460,"avatar_url":"https://avatars.githubusercontent.com/u/832460?v=3","gravatar_id":"","url":"https://api.github.com/users/javanna","html_url":"https://github.com/javanna","followers_url":"https://api.github.com/users/javanna/followers","following_url":"https://api.github.com/users/javanna/following{/other_user}","gists_url":"https://api.github.com/users/javanna/gists{/gist_id}","starred_url":"https://api.github.com/users/javanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javanna/subscriptions","organizations_url":"https://api.github.com/users/javanna/orgs","repos_url":"https://api.github.com/users/javanna/repos","events_url":"https://api.github.com/users/javanna/events{/privacy}","received_events_url":"https://api.github.com/users/javanna/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T17:17:26Z","updated_at":"2016-01-19T17:17:26Z","body":"isn't it a jvm bug? shouldn't we upgrade to a more recent jdk instead of changing the code? I wonder if  the fact that it's a windows machine matters."}}