Well, without the patch, on amd64, I get the following error:
Exception in thread "main" java.lang.NullPointerException
at java.nio.charset.Charset.put(Charset.java:493)
at java.nio.charset.Charset.access$300(Charset.java:240)
at java.nio.charset.Charset$4.run(Charset.java:529)
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.charset.Charset.availableCharsets(Charset.java:525)
at TestCase.main(TestCase.java:7)
On 5/31/06, Kurt Miller <[EMAIL PROTECTED]> wrote:
On Wednesday 31 May 2006 1:27 am, Matt Jibson wrote:
> FreeBSD's jdk1.5 has the same problem as OpenBSD's, discussed in [1].
> Kurt Miller said it would be fixed in patchset 3 [2], but it wasn't.
> Attached is the patch from [1]. There's a NullPointerException if
> Charset.availableCharsets() is called without the patch. Tested on
> amd64, -current.
>
> [1]
http://lists.freebsd.org/mailman/htdig/freebsd-java/2005-September/004355.html
> [2] http://lists.freebsd.org/pipermail/freebsd-java/2006-February/004963.html
>
Hi Matt,
Its kinda strange that you're quoting me with references
on a public mailing list without contacting me directly
first.
Anyway, the patch proposed on the freebsd mailing list
was incorrect. It did not fix the root cause of the NPE.
The root cause was the incomplete addition of the KOI8_U
charset and the fix was in j2se/make/java/sun_io FILES_java.gmk.
The TestCase program provided in your references pass on
OpenBSD/i386, so I don't know what you are trying to fix
now.
-Kurt