| From: | Christoph Berg <myon(at)debian(dot)org> |
|---|---|
| To: | Chapman Flack <chap(at)anastigmatix(dot)net> |
| Cc: | pgsql-pkg-debian(at)postgresql(dot)org |
| Subject: | Re: PL/Java 1.5.1_BETA2 |
| Date: | 2018-09-17 14:47:16 |
| Message-ID: | 20180917144716.GF27331@msg.df7cb.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-pkg-debian pgsql-pkg-yum |
Re: Chapman Flack 2018-09-17 <5B9ED559(dot)5080208(at)anastigmatix(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chapman Flack | 2018-09-18 01:45:42 | Re: PL/Java 1.5.1_BETA2 |
| Previous Message | Chapman Flack | 2018-09-17 01:30:02 | Re: PL/Java 1.5.1_BETA2 |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chapman Flack | 2018-09-18 01:45:42 | Re: PL/Java 1.5.1_BETA2 |
| Previous Message | Chapman Flack | 2018-09-17 01:30:02 | Re: PL/Java 1.5.1_BETA2 |