{"action":"opened","issue":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11902","repository_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11902/labels{/name}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11902/comments","events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11902/events","html_url":"https://github.com/ballerina-platform/ballerina-lang/issues/11902","id":384627509,"node_id":"MDU6SXNzdWUzODQ2Mjc1MDk=","number":11902,"title":"EmptyStackException when typechecking for table[]","user":{"login":"Manuri","id":1335271,"node_id":"MDQ6VXNlcjEzMzUyNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/1335271?v=4","gravatar_id":"","url":"https://api.github.com/users/Manuri","html_url":"https://github.com/Manuri","followers_url":"https://api.github.com/users/Manuri/followers","following_url":"https://api.github.com/users/Manuri/following{/other_user}","gists_url":"https://api.github.com/users/Manuri/gists{/gist_id}","starred_url":"https://api.github.com/users/Manuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manuri/subscriptions","organizations_url":"https://api.github.com/users/Manuri/orgs","repos_url":"https://api.github.com/users/Manuri/repos","events_url":"https://api.github.com/users/Manuri/events{/privacy}","received_events_url":"https://api.github.com/users/Manuri/received_events","type":"User","site_admin":false},"labels":[{"id":828131123,"node_id":"MDU6TGFiZWw4MjgxMzExMjM=","url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels/Component/Compiler","name":"Component/Compiler","color":"0b6664","default":false},{"id":1124247524,"node_id":"MDU6TGFiZWwxMTI0MjQ3NTI0","url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels/L1/L2%20for%20December","name":"L1/L2 for December","color":"d93f0b","default":false},{"id":684576167,"node_id":"MDU6TGFiZWw2ODQ1NzYxNjc=","url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels/Type/Bug","name":"Type/Bug","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-27T05:16:56Z","updated_at":"2018-11-27T05:16:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Description:**\r\n```ballerina\r\n if (ret is table[]) {\r\n   dts = ret;\r\n }\r\n```\r\nIdeally there should have been a compilation error but following exception occurs.\r\n\r\n```bash\r\njava.util.EmptyStackException\r\n\tat java.util.Stack.peek(Stack.java:102)\r\n\tat java.util.Stack.pop(Stack.java:84)\r\n\tat org.wso2.ballerinalang.compiler.parser.BLangPackageBuilder.addArrayType(BLangPackageBuilder.java:497)\r\n\tat org.wso2.ballerinalang.compiler.parser.BLangParserListener.exitArrayTypeNameLabel(BLangParserListener.java:646)\r\n\tat org.wso2.ballerinalang.compiler.parser.antlr4.BallerinaParser$ArrayTypeNameLabelContext.exitRule(BallerinaParser.java:3091)\r\n\tat org.antlr.v4.runtime.Parser.triggerExitRuleEvent(Parser.java:430)\r\n\tat org.antlr.v4.runtime.Parser.exitRule(Parser.java:646)\r\n\tat org.wso2.ballerinalang.compiler.parser.antlr4.BallerinaParser.compilationUnit(BallerinaParser.java:493)\r\n\tat org.wso2.ballerinalang.compiler.parser.Parser.generateCompilationUnit(Parser.java:126)\r\n\tat org.wso2.ballerinalang.compiler.parser.Parser.parse(Parser.java:99)\r\n\tat org.wso2.ballerinalang.compiler.PackageLoader.parse(PackageLoader.java:434)\r\n\tat org.wso2.ballerinalang.compiler.PackageLoader.loadEntryPackage(PackageLoader.java:304)\r\n\tat org.wso2.ballerinalang.compiler.Compiler.lambda$compilePackages$3(Compiler.java:153)\r\n\tat java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)\r\n\tat java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)\r\n\tat java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419)\r\n\tat java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n\tat java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)\r\n\tat java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n\tat java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)\r\n\tat org.wso2.ballerinalang.compiler.Compiler.compilePackages(Compiler.java:155)\r\n\tat org.wso2.ballerinalang.compiler.Compiler.compilePackage(Compiler.java:179)\r\n\tat org.wso2.ballerinalang.compiler.Compiler.compile(Compiler.java:88)\r\n\tat org.ballerinalang.launcher.util.BCompileUtil.compile(BCompileUtil.java:287)\r\n\tat org.ballerinalang.launcher.util.BCompileUtil.compile(BCompileUtil.java:217)\r\n\tat org.ballerinalang.launcher.util.BCompileUtil.compile(BCompileUtil.java:199)\r\n\tat org.ballerinalang.launcher.util.BCompileUtil.compile(BCompileUtil.java:116)\r\n\tat org.ballerinalang.test.h2.H2ClientActionsTest.setup(H2ClientActionsTest.java:53)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)\r\n\tat org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)\r\n\tat org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:451)\r\n\tat org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)\r\n\tat org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)\r\n\tat org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:163)\r\n\tat org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)\r\n\tat org.testng.TestRunner.privateRun(TestRunner.java:648)\r\n\tat org.testng.TestRunner.run(TestRunner.java:505)\r\n\tat org.testng.SuiteRunner.runTest(SuiteRunner.java:455)\r\n\tat org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)\r\n\tat org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)\r\n\tat org.testng.SuiteRunner.run(SuiteRunner.java:364)\r\n\tat org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)\r\n\tat org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)\r\n\tat org.testng.TestNG.runSuitesSequentially(TestNG.java:1187)\r\n\tat org.testng.TestNG.runSuitesLocally(TestNG.java:1116)\r\n\tat org.testng.TestNG.runSuites(TestNG.java:1028)\r\n\tat org.testng.TestNG.run(TestNG.java:996)\r\n\tat org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:135)\r\n\tat org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:112)\r\n\tat org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)\r\n\tat org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:146)\r\n\tat org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)\r\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)\r\n\tat org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)\r\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)\r\n\r\n```\r\n"}}
{"actor":{"display_login":"Manuri"}}