public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/14572] New: System ClassLoader is not set to java.system.class.loader
@ 2004-03-14 16:02 karme at berlios dot de
2004-03-14 16:03 ` [Bug libgcj/14572] System ClassLoader is not set according to java.system.class.loader property karme at berlios dot de
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: karme at berlios dot de @ 2004-03-14 16:02 UTC (permalink / raw)
To: gcc-bugs
according to java/lang/ClassLoader.java documentation: (gcc 3.3.3)
"
* [...] The system property
* <code>java.system.class.loader</code>, if defined, is taken to be the
* name of the class to use as the system class loader, which must have
* a public constructor which takes a ClassLoader as a parent; otherwise this
* uses gnu.java.lang.SystemClassLoader.
*
* <p>Note that this is different from the bootstrap classloader that
* actually loads all the real "system" classes (the bootstrap classloader
* is the parent of the returned system classloader).
*
"
sorry if that is already fixed in newer versions
i only had a quick look with the cvs front-end and there are many changes
but i did not see a fix
--
Summary: System ClassLoader is not set to
java.system.class.loader
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: karme at berlios dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14572
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/14572] System ClassLoader is not set according to java.system.class.loader property
2004-03-14 16:02 [Bug libgcj/14572] New: System ClassLoader is not set to java.system.class.loader karme at berlios dot de
@ 2004-03-14 16:03 ` karme at berlios dot de
2004-03-14 16:08 ` karme at berlios dot de
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: karme at berlios dot de @ 2004-03-14 16:03 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|System ClassLoader is not |System ClassLoader is not
|set to |set according to
|java.system.class.loader |java.system.class.loader
| |property
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14572
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/14572] System ClassLoader is not set according to java.system.class.loader property
2004-03-14 16:02 [Bug libgcj/14572] New: System ClassLoader is not set to java.system.class.loader karme at berlios dot de
2004-03-14 16:03 ` [Bug libgcj/14572] System ClassLoader is not set according to java.system.class.loader property karme at berlios dot de
@ 2004-03-14 16:08 ` karme at berlios dot de
2004-03-14 19:32 ` pinskia at gcc dot gnu dot org
2005-06-15 20:48 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: karme at berlios dot de @ 2004-03-14 16:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From karme at berlios dot de 2004-03-14 16:08 -------
Created an attachment (id=5913)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5913&action=view)
my test
output:
gij output
Exception in thread "main" java.lang.ClassNotFoundException: Foo not found in
[file:./, core:/]
at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.4.0.0)
at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.4.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.4.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String)
(/usr/lib/libgcj.so.4.0.0)
at bug.main(java.lang.String[]) (Unknown Source)
sun java
MyClassLoader.java: cons
MyClassLoader.java: findClass(Foo)
MyClassLoader.java: get resource: "Foo"
Define class "Foo"from 150 bytes bytecode
Foo
MyClassLoader
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14572
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/14572] System ClassLoader is not set according to java.system.class.loader property
2004-03-14 16:02 [Bug libgcj/14572] New: System ClassLoader is not set to java.system.class.loader karme at berlios dot de
2004-03-14 16:03 ` [Bug libgcj/14572] System ClassLoader is not set according to java.system.class.loader property karme at berlios dot de
2004-03-14 16:08 ` karme at berlios dot de
@ 2004-03-14 19:32 ` pinskia at gcc dot gnu dot org
2005-06-15 20:48 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-14 19:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-14 19:32 -------
Confirmed, still happens.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-03-14 19:32:46
date| |
Version|unknown |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14572
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libgcj/14572] System ClassLoader is not set according to java.system.class.loader property
2004-03-14 16:02 [Bug libgcj/14572] New: System ClassLoader is not set to java.system.class.loader karme at berlios dot de
` (2 preceding siblings ...)
2004-03-14 19:32 ` pinskia at gcc dot gnu dot org
@ 2005-06-15 20:48 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-15 20:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-15 20:48 -------
The bug here is that our built-in system class loader is not
initialized when the user-specified system class loader is looked for.
So, the class path is not searched and the class is not found.
Fixing this is mildly tricky as startup and initialization order are
already very messy.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14572
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-06-15 20:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-14 16:02 [Bug libgcj/14572] New: System ClassLoader is not set to java.system.class.loader karme at berlios dot de
2004-03-14 16:03 ` [Bug libgcj/14572] System ClassLoader is not set according to java.system.class.loader property karme at berlios dot de
2004-03-14 16:08 ` karme at berlios dot de
2004-03-14 19:32 ` pinskia at gcc dot gnu dot org
2005-06-15 20:48 ` tromey at gcc dot gnu dot org
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).