public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "bero at arklinux dot org" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/24698] New: [4.1 regression] Apparent problem getting non-.class files out of jars Date: Sun, 06 Nov 2005 19:53:00 -0000 [thread overview] Message-ID: <bug-24698-5606@http.gcc.gnu.org/bugzilla/> (raw) Sorry for the vague description and huge test case - I don't speak Java beyond the "it looks a lot like C++" level. Trying to use a gcj 4.1 SVN rev 106562-compiled ecj (built using the workaround from bug 24441) results in a SIGABRT when trying to translate any .java file (even a simple helloworld.java). strace-ing the output indicates it can't locate the compiler messages, which are in messages.properties, which is definitely included in the .jar and the .jar is in the classpath. Looks like gcj/gij look for a messages.class file instead. Relevant parts of strace output: * open("/usr/lib/libeclipse-ecj.so", O_RDONLY) = 3 <--- It finds the precompiled version [the problem doesn't go away if I delete that and use the .jar only] * stat64("/usr/share/java/eclipse-ecj.jar", {st_mode=S_IFREG|0644, st_size=905576, ...}) = 0 * open("/usr/share/java/eclipse-ecj.jar", O_RDONLY|O_LARGEFILE) = 9 <--- It finds and reads the jar file nevertheless * open("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.la", O_RDONLY) = -1 ENOENT (No such file or directory) * open("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.la", O_RDONLY) = -1 ENOENT (No such file or directory) * open("lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.la", O_RDONLY) = -1 ENOENT (No such file or directory) * access("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.so", R_OK) = -1 ENOENT (No such file or directory) * access("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.so", R_OK) = -1 ENOENT (No such file or directory) * open("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.so", O_RDONLY) = -1 ENOENT (No such file or directory) * open("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages_en_US.so", O_RDONLY) = -1 ENOENT (No such file or directory) * access("/home/arklinux/./org/eclipse/jdt/internal/compiler/batch/messages_en.properties", F_OK) = -1 ENOENT (No such file or directory) * open("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.la", O_RDONLY) = -1 ENOENT (No such file or directory) * open("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.la", O_RDONLY) = -1 ENOENT (No such file or directory) * open("lib-org-eclipse-jdt-internal-compiler-batch-messages.la", O_RDONLY) = -1 ENOENT (No such file or directory) * access("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.so", R_OK) = -1 ENOENT (No such file or directory) * access("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.so", R_OK) = -1 ENOENT (No such file or directory) * open("/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.so", O_RDONLY) = -1 ENOENT (No such file or directory) * open("/usr/lib/lib-org-eclipse-jdt-internal-compiler-batch-messages.so", O_RDONLY) = -1 ENOENT (No such file or directory) access("/home/arklinux/./org/eclipse/jdt/internal/compiler/batch/messages.class", F_OK) = -1 ENOENT (No such file or directory) <--- It looks for org.eclipse.jdt.internal.compiler.batch.messages* in various places without finding anything, insisting it's supposed to be a .class when it's in fact looking for messages.properties [strace-ing the 4.0.x generated version confirms messages.properties is what it's looking for]. $ jar tfv eclipse-ecj.jar |grep compiler/util/messages 2764 Wed Jan 12 00:13:34 CET 2005 org/eclipse/jdt/internal/compiler/util/messages.properties The same code (and build process) works nicely if gcj/gij 4.0.x is used. -- Summary: [4.1 regression] Apparent problem getting non-.class files out of jars Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bero at arklinux dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24698
next reply other threads:[~2005-11-06 19:53 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-11-06 19:53 bero at arklinux dot org [this message] 2005-11-19 15:00 ` [Bug java/24698] " bero at arklinux dot org 2005-11-19 15:02 ` bero at arklinux dot org 2005-11-19 15:03 ` bero at arklinux dot org 2005-11-19 15:16 ` bero at arklinux dot org 2005-11-24 18:07 ` [Bug java/24698] [4.1/4.2 regression] Failure locating .properties files inside jars bero at arklinux dot org 2005-11-29 22:37 ` tromey at gcc dot gnu dot org 2005-12-12 19:16 ` bero at arklinux dot org 2005-12-12 19:18 ` [Bug java/24698] [4.1/4.2 regression] CLASSPATH . no longer implied for class specified on the command line bero at arklinux dot org 2005-12-12 20:02 ` bero at arklinux dot org 2005-12-12 21:00 ` bero at arklinux dot org 2005-12-16 1:01 ` [Bug java/24698] [4.1/4.2 regression] SIGABRT when trying to read properties files from jars; and " bero at arklinux dot org 2005-12-16 1:17 ` bero at arklinux dot org 2005-12-16 1:24 ` bero at arklinux dot org 2005-12-16 9:59 ` [Bug java/24698] [4.1/4.2 regression] SIGABRT when using ResourceBundle.getBundle with a nonexistant key bero at arklinux dot org 2005-12-16 13:22 ` bero at arklinux dot org 2006-01-08 18:41 ` tromey at gcc dot gnu dot org 2006-01-08 21:50 ` bero at arklinux dot org 2006-01-17 18:25 ` bero at arklinux dot org 2006-02-05 15:44 ` pinskia at gcc dot gnu dot org 2006-06-04 19:34 ` jsm28 at gcc dot gnu dot org 2006-06-04 19:50 ` mmitchel at gcc dot gnu dot org 2007-02-14 9:35 ` [Bug java/24698] [4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org 2008-07-04 20:06 ` [Bug java/24698] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org 2009-03-31 19:01 ` [Bug java/24698] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org 2009-08-04 12:30 ` rguenth at gcc dot gnu dot org 2010-05-22 18:13 ` [Bug java/24698] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-24698-5606@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).