Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: X10 1.7 - JVM hosted
-
Fix Version/s: X10 1.7.1 - JVM Hosted
-
Component/s: XRX Runtime
-
Labels:None
-
Number of attachments :
Description
import x10.io.InputStream; public class Bug { def foo(is:InputStream) { try { is.read(); } catch (Exception) {} } }
Exception in thread "main" polyglot.util.InternalCompilerError: Template 'Native' uses #1
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.dumpRegex(X10PrettyPrinterVisitor.java:3023)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.emitNativeAnnotation(X10PrettyPrinterVisitor.java:1783)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.visit(X10PrettyPrinterVisitor.java:1796)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visitAppropriate(X10DelegatingVisitor.java:264)
at polyglot.ext.x10.ast.X10DelFactory_c$TD.translate(X10DelFactory_c.java:45)
at polyglot.visit.Translator.print(Translator.java:131)
at polyglot.ext.x10.visit.X10Translator.print(X10Translator.java:52)
at polyglot.ast.Node_c.print(Node_c.java:405)
at polyglot.ast.Eval_c.prettyPrint(Eval_c.java:80)
at polyglot.ast.JL_c.prettyPrint(JL_c.java:257)
at polyglot.ast.Node_c.translate(Node_c.java:411)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.visit(X10PrettyPrinterVisitor.java:211)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:306)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:314)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:389)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:406)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visitAppropriate(X10DelegatingVisitor.java:194)
at polyglot.ext.x10.ast.X10DelFactory_c$TD.translate(X10DelFactory_c.java:45)
at polyglot.visit.Translator.print(Translator.java:131)
at polyglot.ext.x10.visit.X10Translator.print(X10Translator.java:52)
at polyglot.ast.Node_c.print(Node_c.java:405)
at polyglot.ast.Node_c.printBlock(Node_c.java:390)
at polyglot.ast.AbstractBlock_c.prettyPrint(AbstractBlock_c.java:87)
at polyglot.ast.Block_c.prettyPrint(Block_c.java:32)
at polyglot.ast.JL_c.prettyPrint(JL_c.java:257)
at polyglot.ast.Node_c.translate(Node_c.java:411)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.visit(X10PrettyPrinterVisitor.java:211)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:306)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:314)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:389)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:390)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:391)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visitAppropriate(X10DelegatingVisitor.java:209)
at polyglot.ext.x10.ast.X10DelFactory_c$TD.translate(X10DelFactory_c.java:45)
at polyglot.visit.Translator.print(Translator.java:131)
at polyglot.ext.x10.visit.X10Translator.print(X10Translator.java:52)
at polyglot.ast.Node_c.print(Node_c.java:405)
at polyglot.ast.Node_c.printSubStmt(Node_c.java:397)
at polyglot.ast.Try_c.prettyPrint(Try_c.java:229)
at polyglot.ast.JL_c.prettyPrint(JL_c.java:257)
at polyglot.ast.Node_c.translate(Node_c.java:411)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.visit(X10PrettyPrinterVisitor.java:211)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:306)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:314)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:389)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:424)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visitAppropriate(X10DelegatingVisitor.java:176)
at polyglot.ext.x10.ast.X10DelFactory_c$TD.translate(X10DelFactory_c.java:45)
at polyglot.visit.Translator.print(Translator.java:131)
at polyglot.ext.x10.visit.X10Translator.print(X10Translator.java:52)
at polyglot.ast.Node_c.print(Node_c.java:405)
at polyglot.ast.Node_c.printBlock(Node_c.java:390)
at polyglot.ast.AbstractBlock_c.prettyPrint(AbstractBlock_c.java:87)
at polyglot.ast.Block_c.prettyPrint(Block_c.java:32)
at polyglot.ast.JL_c.prettyPrint(JL_c.java:257)
at polyglot.ast.Node_c.translate(Node_c.java:411)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.visit(X10PrettyPrinterVisitor.java:211)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:306)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:314)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:389)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:390)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:391)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visitAppropriate(X10DelegatingVisitor.java:209)
at polyglot.ext.x10.ast.X10DelFactory_c$TD.translate(X10DelFactory_c.java:45)
at polyglot.visit.Translator.print(Translator.java:131)
at polyglot.ext.x10.visit.X10Translator.print(X10Translator.java:52)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.generateMethodDecl(X10PrettyPrinterVisitor.java:706)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.visit(X10PrettyPrinterVisitor.java:539)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visitAppropriate(X10DelegatingVisitor.java:212)
at polyglot.ext.x10.ast.X10DelFactory_c$TD.translate(X10DelFactory_c.java:45)
at polyglot.visit.Translator.print(Translator.java:131)
at polyglot.ext.x10.visit.X10Translator.print(X10Translator.java:52)
at polyglot.ast.Node_c.print(Node_c.java:405)
at polyglot.ast.Node_c.printBlock(Node_c.java:390)
at polyglot.ast.ClassBody_c.prettyPrint(ClassBody_c.java:186)
at polyglot.ast.JL_c.prettyPrint(JL_c.java:257)
at polyglot.ast.Node_c.translate(Node_c.java:411)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.visit(X10PrettyPrinterVisitor.java:211)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:306)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:314)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:315)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visit(X10DelegatingVisitor.java:316)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visitAppropriate(X10DelegatingVisitor.java:284)
at polyglot.ext.x10.ast.X10DelFactory_c$TD.translate(X10DelFactory_c.java:45)
at polyglot.visit.Translator.print(Translator.java:131)
at polyglot.ext.x10.visit.X10Translator.print(X10Translator.java:52)
at polyglot.ast.Node_c.print(Node_c.java:405)
at polyglot.ext.x10.visit.X10PrettyPrinterVisitor.visit(X10PrettyPrinterVisitor.java:1008)
at polyglot.ext.x10.visit.X10DelegatingVisitor.visitAppropriate(X10DelegatingVisitor.java:282)
at polyglot.ext.x10.ast.X10DelFactory_c$TD.translate(X10DelFactory_c.java:45)
at polyglot.visit.Translator.translateTopLevelDecl(Translator.java:247)
at polyglot.ext.x10.visit.X10Translator.translateSource(X10Translator.java:99)
at polyglot.visit.Translator.translate(Translator.java:142)
at polyglot.frontend.OutputGoal.runTask(OutputGoal.java:35)
at polyglot.frontend.Scheduler.runPass(Scheduler.java:321)
at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:88)
at polyglot.types.LazyRef_c.get(LazyRef_c.java:45)
at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:44)
at polyglot.types.LazyRef_c.get(LazyRef_c.java:45)
at polyglot.frontend.AbstractGoal_c.run(AbstractGoal_c.java:44)
at polyglot.types.LazyRef_c.get(LazyRef_c.java:45)
at polyglot.frontend.Scheduler.attempt(Scheduler.java:233)
at polyglot.frontend.Scheduler.runToCompletion(Scheduler.java:170)
at polyglot.frontend.Compiler.compile(Compiler.java:185)
at polyglot.frontend.Compiler.compileFiles(Compiler.java:149)
at polyglot.main.Main.start(Main.java:119)
at polyglot.main.Main.start(Main.java:74)
at polyglot.main.Main.main(Main.java:252)
Appears to have been fixed (per daily test run)