This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/20198] New: java.security.CodeSource.getLocation output is different than expected
- From: "bkonrath at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Feb 2005 18:00:21 -0000
- Subject: [Bug libgcj/20198] New: java.security.CodeSource.getLocation output is different than expected
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCJ version:
% gij4 --version
gij (GNU libgcj) version 4.0.0 20050217 (Red Hat 4.0.0-0.27)
Test class:
public class Test {
public static void main(String[] args) {
System.out.println(Test.class.getProtectionDomain().
getCodeSource().getLocation());
}
}
With Sun VM 1.4.2_06 I get:
% j2sdk1.4.2_06/bin/java Test
file:/home/bkonrath/
With GCJ I get:
% gij4 Test
file:./
I also noticed that the SUN vm returns a URL that has symlinks resolved. Let me
know if you need more info or if I should file this bug somewhere else.
--
Summary: java.security.CodeSource.getLocation output is different
than expected
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bkonrath at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20198