From: books at ejurka.com (Kris Jurka) Date: Wed, 8 Oct 2008 20:04:37 -0400 (EDT) Subject: [Pljava-dev] Arrays support for object views In-Reply-To: <707ef6b40809260702n77f7737fh703b5123457df9bd@mail.gmail.com> References: <707ef6b40809230929p66557facy414f760052fab9ab@mail.gmail.com> <707ef6b40809260702n77f7737fh703b5123457df9bd@mail.gmail.com> Message-ID: On Fri, 26 Sep 2008, Krzysztof Nienartowicz wrote: > > By using simply: > receiver.updateObject(5, new Double[]{1.0,2.0,3.0}); > I finally don't get any errors but the values are not related to the array > set and always stay the same. Seems they are not initialized properly even. When I test the same here, I get a crash. Pljava is trying to read the Double[] as if it was a double[] and that's blowing up. If I change the array to Datum conversion code to expect Double[] it works, but naturally other places that are now passing double[] blow up. Pljava has some smarts about how double and Double are interchangeable, but I'm guessing that hasn't propagated all the way through the array code. I don't really understand how the whole type system is supposed to work, so it's difficult to figure out how to fix this. Kris Jurka