{"action":"closed","issue":{"url":"https://api.github.com/repos/gwtproject/gwt/issues/9424","repository_url":"https://api.github.com/repos/gwtproject/gwt","labels_url":"https://api.github.com/repos/gwtproject/gwt/issues/9424/labels{/name}","comments_url":"https://api.github.com/repos/gwtproject/gwt/issues/9424/comments","events_url":"https://api.github.com/repos/gwtproject/gwt/issues/9424/events","html_url":"https://github.com/gwtproject/gwt/issues/9424","id":176028652,"number":9424,"title":"2.8.0-rc2: Internal compiler exception with `new Double(\"2345\");`","user":{"login":"stikdragon","id":6278403,"avatar_url":"https://avatars.githubusercontent.com/u/6278403?v=3","gravatar_id":"","url":"https://api.github.com/users/stikdragon","html_url":"https://github.com/stikdragon","followers_url":"https://api.github.com/users/stikdragon/followers","following_url":"https://api.github.com/users/stikdragon/following{/other_user}","gists_url":"https://api.github.com/users/stikdragon/gists{/gist_id}","starred_url":"https://api.github.com/users/stikdragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stikdragon/subscriptions","organizations_url":"https://api.github.com/users/stikdragon/orgs","repos_url":"https://api.github.com/users/stikdragon/repos","events_url":"https://api.github.com/users/stikdragon/events{/privacy}","received_events_url":"https://api.github.com/users/stikdragon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"rluble","id":4175508,"avatar_url":"https://avatars.githubusercontent.com/u/4175508?v=3","gravatar_id":"","url":"https://api.github.com/users/rluble","html_url":"https://github.com/rluble","followers_url":"https://api.github.com/users/rluble/followers","following_url":"https://api.github.com/users/rluble/following{/other_user}","gists_url":"https://api.github.com/users/rluble/gists{/gist_id}","starred_url":"https://api.github.com/users/rluble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rluble/subscriptions","organizations_url":"https://api.github.com/users/rluble/orgs","repos_url":"https://api.github.com/users/rluble/repos","events_url":"https://api.github.com/users/rluble/events{/privacy}","received_events_url":"https://api.github.com/users/rluble/received_events","type":"User","site_admin":false},"assignees":[{"login":"rluble","id":4175508,"avatar_url":"https://avatars.githubusercontent.com/u/4175508?v=3","gravatar_id":"","url":"https://api.github.com/users/rluble","html_url":"https://github.com/rluble","followers_url":"https://api.github.com/users/rluble/followers","following_url":"https://api.github.com/users/rluble/following{/other_user}","gists_url":"https://api.github.com/users/rluble/gists{/gist_id}","starred_url":"https://api.github.com/users/rluble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rluble/subscriptions","organizations_url":"https://api.github.com/users/rluble/orgs","repos_url":"https://api.github.com/users/rluble/repos","events_url":"https://api.github.com/users/rluble/events{/privacy}","received_events_url":"https://api.github.com/users/rluble/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/gwtproject/gwt/milestones/1","html_url":"https://github.com/gwtproject/gwt/milestones/2.8","labels_url":"https://api.github.com/repos/gwtproject/gwt/milestones/1/labels","id":1173710,"number":1,"title":"2.8","description":"","creator":{"login":"tbroyer","id":173813,"avatar_url":"https://avatars.githubusercontent.com/u/173813?v=3","gravatar_id":"","url":"https://api.github.com/users/tbroyer","html_url":"https://github.com/tbroyer","followers_url":"https://api.github.com/users/tbroyer/followers","following_url":"https://api.github.com/users/tbroyer/following{/other_user}","gists_url":"https://api.github.com/users/tbroyer/gists{/gist_id}","starred_url":"https://api.github.com/users/tbroyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbroyer/subscriptions","organizations_url":"https://api.github.com/users/tbroyer/orgs","repos_url":"https://api.github.com/users/tbroyer/repos","events_url":"https://api.github.com/users/tbroyer/events{/privacy}","received_events_url":"https://api.github.com/users/tbroyer/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":114,"state":"open","created_at":"2015-06-20T22:43:02Z","updated_at":"2016-09-19T14:09:37Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-09-09T14:50:59Z","updated_at":"2016-09-19T14:09:37Z","closed_at":"2016-09-19T14:09:37Z","body":"To reproduce: Create a new basic web application using the Eclipse plugin, with the default options.  Replace content of onModuleLoad with: \r\n```java\r\n\tpublic void onModuleLoad() {\r\n\t\tnew Double(\"2345\");\r\n\t}\r\n```\r\nand run via SDM.  The following stack trace is produced:\r\n\r\n```\r\n         Compiling 1 permutation\r\n            Compiling permutation 0...\r\n            [ERROR] An internal compiler exception occurred\r\ncom.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)\r\n\tat com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168)\r\n\tat com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)\r\n\tat com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)\r\n\tat com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:785)\r\n\tat com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:777)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:172)\r\n\tat com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:147)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)\r\n\tat com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1284)\r\n\tat com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1249)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)\r\n\tat com.google.gwt.dev.jjs.impl.TypeReferencesRecorder.execImpl(TypeReferencesRecorder.java:151)\r\n\tat com.google.gwt.dev.jjs.impl.TypeReferencesRecorder.exec(TypeReferencesRecorder.java:46)\r\n\tat com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.maybeRecordReferencesAndControlFlow(JavaToJavaScriptCompiler.java:473)\r\n\tat com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:352)\r\n\tat com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)\r\n\tat com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)\r\n\tat com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)\r\n\tat com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.NullPointerException\r\n\tat com.google.gwt.dev.jjs.impl.TypeReferencesRecorder.processMethodCall(TypeReferencesRecorder.java:188)\r\n\tat com.google.gwt.dev.jjs.impl.TypeReferencesRecorder.endVisit(TypeReferencesRecorder.java:96)\r\n\tat com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:268)\r\n\tat com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)\r\n\t... 32 more\r\n               [ERROR] at DoubleBug.java(8): <source info not available>\r\n                  com.google.gwt.dev.jjs.ast.JMethodCall\r\n               [ERROR] at DoubleBug.java(8): <source info not available>\r\n                  com.google.gwt.dev.jjs.ast.JExpressionStatement\r\n               [ERROR] at DoubleBug.java(7): <source info not available>\r\n                  com.google.gwt.dev.jjs.ast.JBlock\r\n               [ERROR] at DoubleBug.java(7): <source info not available>\r\n                  com.google.gwt.dev.jjs.ast.JMethodBody\r\n               [ERROR] at DoubleBug.java(7): bugs.client.DoubleBug.onModuleLoad()V\r\n                  com.google.gwt.dev.jjs.ast.JMethod\r\n               [ERROR] at DoubleBug.java(6): bugs.client.DoubleBug (extends Object implements EntryPoint)\r\n                  com.google.gwt.dev.jjs.ast.JClassType\r\n               [ERROR] at Unknown(0): <JProgram>\r\n                  com.google.gwt.dev.jjs.ast.JProgram\r\n            [ERROR] Unrecoverable exception, shutting down\r\ncom.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)\r\n\tat com.google.gwt.dev.javac.CompilationProblemReporter.logAndTranslateException(CompilationProblemReporter.java:106)\r\n\tat com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:459)\r\n\tat com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)\r\n\tat com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)\r\n\tat com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)\r\n\tat com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n            [ERROR] Not all permutation were compiled , completed (0/1)\r\n```\r\n\r\nThis only occurs in SDM, a full compile succeeds.  It only occurs with `Double`, other boxed simple types are ok.   It does not happen in `2.8.0-rc1`.  `Double.parseDouble(\"2345\");` does not suffer this.\r\n\r\nInterestingly, adding `<inherits name=\"com.google.web.bindery.requestfactory.RequestFactory\" />` to gwt.xml \"fixes\" the issue (found by chance).  Suspect adding other modules might have the same effect. \r\n\r\n"}}
{"actor":{"display_login":"rluble"}}