{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/964","repository_url":"https://api.github.com/repos/facebook/buck","labels_url":"https://api.github.com/repos/facebook/buck/issues/964/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/964/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/964/events","html_url":"https://github.com/facebook/buck/issues/964","id":184417886,"number":964,"title":"Setting java.source_level and java.target_level to 7 not effective?","user":{"login":"dpursehouse","id":836426,"avatar_url":"https://avatars.githubusercontent.com/u/836426?v=3","gravatar_id":"","url":"https://api.github.com/users/dpursehouse","html_url":"https://github.com/dpursehouse","followers_url":"https://api.github.com/users/dpursehouse/followers","following_url":"https://api.github.com/users/dpursehouse/following{/other_user}","gists_url":"https://api.github.com/users/dpursehouse/gists{/gist_id}","starred_url":"https://api.github.com/users/dpursehouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpursehouse/subscriptions","organizations_url":"https://api.github.com/users/dpursehouse/orgs","repos_url":"https://api.github.com/users/dpursehouse/repos","events_url":"https://api.github.com/users/dpursehouse/events{/privacy}","received_events_url":"https://api.github.com/users/dpursehouse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-21T07:33:08Z","updated_at":"2016-10-21T14:49:28Z","closed_at":null,"body":"In my environment I have Java 8:\r\n\r\n```\r\n$ java -version\r\njava version \"1.8.0_91\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_91-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)\r\n```\r\n\r\nBut the project being built is targetted for Java 7 runtime.\r\n\r\nIf the `source_level` and `target_level` are set to `7` (or not set, and they default to `7` anyway), and if some Java 8 specific language feature creeps in, I expect that it should not compile. \r\n\r\nSmall reproducer project here: https://github.com/dpursehouse/buck_source_level\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/255397757","html_url":"https://github.com/facebook/buck/issues/964#issuecomment-255397757","issue_url":"https://api.github.com/repos/facebook/buck/issues/964","id":255397757,"user":{"login":"davido","id":347173,"avatar_url":"https://avatars.githubusercontent.com/u/347173?v=3","gravatar_id":"","url":"https://api.github.com/users/davido","html_url":"https://github.com/davido","followers_url":"https://api.github.com/users/davido/followers","following_url":"https://api.github.com/users/davido/following{/other_user}","gists_url":"https://api.github.com/users/davido/gists{/gist_id}","starred_url":"https://api.github.com/users/davido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davido/subscriptions","organizations_url":"https://api.github.com/users/davido/orgs","repos_url":"https://api.github.com/users/davido/repos","events_url":"https://api.github.com/users/davido/events{/privacy}","received_events_url":"https://api.github.com/users/davido/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T14:49:28Z","updated_at":"2016-10-21T14:49:28Z","body":"Setting `extra_arguments` to:\r\n\r\n```\r\n[java]\r\n extra_arguments = \"-bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar\"\r\n```\r\n\r\nis failing with:\r\n\r\n```\r\ninvalid flag: -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar\r\n\r\njava.lang.IllegalArgumentException: invalid flag: -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar\r\n    at com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:206)\r\n```"}}
{"actor":{"display_login":"davido"}}