|
From: | Tom Bousso |
Subject: | [Bug-kawa] [bug #47772] Array clone doesn't work |
Date: | Sun, 24 Apr 2016 04:18:41 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL: <http://savannah.gnu.org/bugs/?47772> Summary: Array clone doesn't work Project: Kawa Submitted by: tbousso Submitted on: Sun 24 Apr 2016 04:18:40 AM GMT Category: Code generation Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: (define a ::int[] (int[] 1 2 3)) (a:clone) results in a NullPointerException gnu.bytecode.ClassType.isAccessible(ClassType.java:324) gnu.kawa.reflect.MethodFilter.select(ClassMethods.java:356) gnu.bytecode.ArrayType.getMethods(ArrayType.java:87) gnu.kawa.reflect.ClassMethods.getMethods(ClassMethods.java:121) I tried adding: || receiver instanceof ArrayType to line 357 in gnu.kawa.reflect.MethodFilter.select however it still crashes gnu.kawa.reflect.ClassMethods.removeRedundantMethods(ClassMethods.java:85) gnu.kawa.reflect.ClassMethods.getMethods(ClassMethods.java:128) gnu.kawa.functions.CompileNamedPart.validateGetNamedPart(CompileNamedPart.java:113) gnu.expr.InlineCalls.maybeInline(InlineCalls.java:918) _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?47772> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |