Bug#350772: libgcj6-dev: test program for regex bug
Package: libgcj6-dev
Version: 4.0.2-5j2
Severity: normal
Subject: libgcj6-dev: test program for regex bug
Package: libgcj6-dev
Version: 4.0.2-5j2
Severity: normal
Hello,
this is an update to Debian bug report #327411
about java code compiled with --static which fails to execute
doing something within the gnu.regexp package.
I haven't got a patch, but at least I have a small test program:
------knip knip------------
public class RegexTest {
public static void main(String[] args)
{
java.util.regex.Pattern.compile("x");
}
}
------knip knip------------
If I compile this with
gcj -o RegexTest --main=RegexTest RegexTest.java
it works, and if I compile it with
gcj -o RegexTest --main=RegexTest --static RegexTest.java
it compiles but when running it gets an ExceptionInInitializerError
caused by: java.util.MissingResourceException: Bundle gnu/regexp/MessagesBundle not found
As I reported before, the workaround is to create a subdirectory gnu/regexp
and put gnu/regexp/MessageBundle.properties in that subdirectory.
Good luck!!
Frits
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8
Locale: LANG=nl_NL@euro, LC_CTYPE=nl_NL@euro (charmap=ISO-8859-15)
Versions of packages libgcj6-dev depends on:
ii gcj-4.0 4.0.2-5j2 The GNU compiler for Java(TM)
ii libgcj6 4.0.2-5j2 Java runtime library for use with
ii libgcj6-awt 4.0.2-5j2 AWT peer runtime libraries for use
ii libgcj6-common 4.0.2-5j2 Java runtime library for use with
ii zlib1g-dev 1:1.2.3-9 compression library - development
libgcj6-dev recommends no packages.
-- no debconf information
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8
Locale: LANG=nl_NL@euro, LC_CTYPE=nl_NL@euro (charmap=ISO-8859-15)
Versions of packages libgcj6-dev depends on:
ii gcj-4.0 4.0.2-5j2 The GNU compiler for Java(TM)
ii libgcj6 4.0.2-5j2 Java runtime library for use with
ii libgcj6-awt 4.0.2-5j2 AWT peer runtime libraries for use
ii libgcj6-common 4.0.2-5j2 Java runtime library for use with
ii zlib1g-dev 1:1.2.3-9 compression library - development
libgcj6-dev recommends no packages.
-- no debconf information
Reply to: