{"action":"opened","issue":{"url":"https://api.github.com/repos/gwtproject/gwt/issues/9215","labels_url":"https://api.github.com/repos/gwtproject/gwt/issues/9215/labels{/name}","comments_url":"https://api.github.com/repos/gwtproject/gwt/issues/9215/comments","events_url":"https://api.github.com/repos/gwtproject/gwt/issues/9215/events","html_url":"https://github.com/gwtproject/gwt/issues/9215","id":116996661,"number":9215,"title":"JettyLauncher enforces 1.6 compiler so JSPs with 1.7 features won't compile.","user":{"login":"mrfrag","id":1596862,"avatar_url":"https://avatars.githubusercontent.com/u/1596862?v=3","gravatar_id":"","url":"https://api.github.com/users/mrfrag","html_url":"https://github.com/mrfrag","followers_url":"https://api.github.com/users/mrfrag/followers","following_url":"https://api.github.com/users/mrfrag/following{/other_user}","gists_url":"https://api.github.com/users/mrfrag/gists{/gist_id}","starred_url":"https://api.github.com/users/mrfrag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrfrag/subscriptions","organizations_url":"https://api.github.com/users/mrfrag/orgs","repos_url":"https://api.github.com/users/mrfrag/repos","events_url":"https://api.github.com/users/mrfrag/events{/privacy}","received_events_url":"https://api.github.com/users/mrfrag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-15T15:11:14Z","updated_at":"2015-11-15T15:11:14Z","closed_at":null,"body":"Default [com.google.gwt.dev.shell.jetty.JettyLauncher](https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java) enforces Java 6 compiler. \r\n```java\r\n/**\r\n   * Ant compiler adapter for Eclipse Java compiler, but with default\r\n   * target and source compatibility set to Java 6.\r\n   */\r\npublic static final class JDTCompiler16 extends JDTCompilerAdapter {\r\n    @Override\r\n    public void setJavac(Javac attributes) {\r\n      if (attributes.getTarget() == null) {\r\n        attributes.setTarget(\"1.6\");\r\n      }\r\n      if (attributes.getSource() == null) {\r\n        attributes.setSource(\"1.6\");\r\n      }\r\n      super.setJavac(attributes);\r\n    }\r\n  }\r\n```\r\nThis causes errors when trying to compile JSP files with 1.7 features. \r\nFor ex. while using diamond operator you'll get \r\n```\r\n'<>' operator is not allowed for source level below 1.7\r\n```\r\nerror, even with -sourceLevel explicitly set to 1.7 and compilerSourceVM=1.7, compilerTargetVM=1.7 declared in web.xml\r\n"}}