Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1uoA-0005OB-5p for pgsql-pkg-debian@arkaria.postgresql.org; Mon, 17 Sep 2018 14:47:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g1uo8-0000zd-ND for pgsql-pkg-debian@arkaria.postgresql.org; Mon, 17 Sep 2018 14:47:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1uo8-0000zP-Ej for pgsql-pkg-debian@lists.postgresql.org; Mon, 17 Sep 2018 14:47:24 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1uo3-0005Yp-Ga for pgsql-pkg-debian@postgresql.org; Mon, 17 Sep 2018 14:47:23 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 42DTVX4tqpz3Dwv; Mon, 17 Sep 2018 16:47:16 +0200 (CEST) Date: Mon, 17 Sep 2018 16:47:16 +0200 From: Christoph Berg To: Chapman Flack Cc: pgsql-pkg-debian@postgresql.org Subject: Re: PL/Java 1.5.1_BETA2 Message-ID: <20180917144716.GF27331@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Chapman Flack , pgsql-pkg-debian@postgresql.org References: <5B96B226.2080803@anastigmatix.net> <20180915203221.GA19015@msg.df7cb.de> <5B9D73A2.2090402@anastigmatix.net> <20180916201808.GA30681@msg.df7cb.de> <20180916202733.GB30681@msg.df7cb.de> <5B9ED559.5080208@anastigmatix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B9ED559.5080208@anastigmatix.net> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Chapman Flack 2018-09-17 <5B9ED559.5080208@anastigmatix.net> > > 20:22:25 Exception in thread "main" java.lang.ClassCastException: sun.org.mozilla.javascript.ConsString cannot be cast to java.lang.String > > Could you try changing pljava-packaging/build.xml at line 353 from > > computedPath = replacement + computedPath.slice(plen); > > to > > computedPath = new java.lang.String(replacement + computedPath.slice(plen)); That shifted the problem a bit: + java -Dpgsql.pgconfig=/usr/lib/postgresql/9.4/bin/pg_config -Dpgconfig.pkglibdir=debian/postgresql-9.4-pljava/usr/lib/postgresql/9.4/lib -Dpgconfig.sharedir=debian/postgresql-9.4-pljava/usr/share/postgresql/9.4 -jar build-9.4/pljava-pg9.4-amd64-Linux-gpp.jar Exception in thread "main" java.lang.ClassCastException: sun.org.mozilla.javascript.NativeJavaObject cannot be cast to java.lang.String at org.gjt.cuspy.JarX.extract(JarX.java:670) at org.gjt.cuspy.JarX.extract(JarX.java:445) at org.gjt.cuspy.JarX.main(JarX.java:419) > I keep being surprised by differences in the JavaScript interpreter > supplied in different Java runtimes; the unchanged code has worked > without problems on so many. But I *think* this should work on your jdk7 > and not break others.... We could just declare openjdk-8 to be required on the packaging side, that excludes jessie and trusty which will be EOL soonish anyway. Christoph