public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/21058] New: libgcj can't find class
@ 2005-04-16 16:01 green at redhat dot com
  2005-04-26 20:20 ` [Bug libgcj/21058] " tromey at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: green at redhat dot com @ 2005-04-16 16:01 UTC (permalink / raw)
  To: java-prs

Given the following test program:

---- cut here -------------------------------------------
import java.awt.*;
import javax.imageio.*;

public class ShowJPEGReader
{
    public static void main (String args[])
      {
        System.out.println (Toolkit.getDefaultToolkit ());
        System.out.println (ImageIO.getImageReadersByFormatName("JPEG").next());
      }
}
---- cut here -------------------------------------------

Running it results in:

$ gij ShowJPEGReader
gnu.java.awt.peer.gtk.GtkToolkit@55e00
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving
class: javax.imageio.ImageIO
   at java.lang.VMClassLoader.transformException(java.lang.Class,
java.lang.Throwable) (/home/green/FSF/4.0/i/lib/libgcj.so.6.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/home/green/FSF/4.0/i/lib/libgcj.so.6.0.0)
   at java.lang.Class.initializeClass() (/home/green/FSF/4.0/i/lib/libgcj.so.6.0.0)
   at ShowJPEGReader.main(java.lang.String[]) (Unknown Source)
   at gnu.java.lang.MainThread.call_main()
(/home/green/FSF/4.0/i/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/home/green/FSF/4.0/i/lib/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException:
javax.imageio.ImageIO$ReaderMIMETypeFilter not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(java.lang.String)
(/home/green/FSF/4.0/i/lib/libgcj.so.6.0.0)
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/home/green/FSF/4.0/i/lib/libgcj.so.6.0.0)
   at java.lang.ClassLoader.loadClass(java.lang.String)
(/home/green/FSF/4.0/i/lib/libgcj.so.6.0.0)
   ...5 more

But javax.imageio.ImageIO$ReaderMIMETypeFilter is here:

$ nm -D ~/FSF/i/lib/libgcj.so.6.0.0 | c++filt | grep ReaderMIMETypeFilter
00deb9e0 D javax::imageio::ImageIO$ReaderMIMETypeFilter::class$
008fcc50 T javax::imageio::ImageIO$ReaderMIMETypeFilter::filter(java::lang::Object*)
008fcc10 T
javax::imageio::ImageIO$ReaderMIMETypeFilter::ImageIO$ReaderMIMETypeFilter(java::lang::String*)
00deba80 D vtable for javax::imageio::ImageIO$ReaderMIMETypeFilter

-- 
           Summary: libgcj can't find class
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at redhat dot com
                CC: aph at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org,java-prs at gcc dot gnu dot org,tromey at redhat dot
                    com
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] libgcj can't find class
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
@ 2005-04-26 20:20 ` tromey at gcc dot gnu dot org
  2005-04-26 20:47 ` green at redhat dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-04-26 20:20 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-04-26 20:20 -------
Wasn't this fixed on the 4.0 branch by sorting the files
passed to the BC compilations?

If so, on the trunk we should probably instead look at the libtool fix.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] libgcj can't find class
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
  2005-04-26 20:20 ` [Bug libgcj/21058] " tromey at gcc dot gnu dot org
@ 2005-04-26 20:47 ` green at redhat dot com
  2005-04-26 23:19 ` [Bug libgcj/21058] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: green at redhat dot com @ 2005-04-26 20:47 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From green at redhat dot com  2005-04-26 20:47 -------
(In reply to comment #1)
> Wasn't this fixed on the 4.0 branch by sorting the files
> passed to the BC compilations?

Yes, that's right.

> If so, on the trunk we should probably instead look at the libtool fix.

Yes, that's what we discussed before.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] [4.1 Regression] libgcj can't find class
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
  2005-04-26 20:20 ` [Bug libgcj/21058] " tromey at gcc dot gnu dot org
  2005-04-26 20:47 ` green at redhat dot com
@ 2005-04-26 23:19 ` pinskia at gcc dot gnu dot org
  2005-05-06  3:21 ` green at redhat dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-26 23:19 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |build
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-26 23:19:25
               date|                            |
            Summary|libgcj can't find class     |[4.1 Regression] libgcj
                   |                            |can't find class
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] [4.1 Regression] libgcj can't find class
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
                   ` (2 preceding siblings ...)
  2005-04-26 23:19 ` [Bug libgcj/21058] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-06  3:21 ` green at redhat dot com
  2005-06-26 17:49 ` [Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: green at redhat dot com @ 2005-05-06  3:21 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From green at redhat dot com  2005-05-06 03:21 -------
*** Bug 20693 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl at lucon dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
                   ` (3 preceding siblings ...)
  2005-05-06  3:21 ` green at redhat dot com
@ 2005-06-26 17:49 ` pinskia at gcc dot gnu dot org
  2005-07-05 15:10 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-26 17:49 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 17:49 -------
Would this fixed via compiling directory by directory?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
                   ` (4 preceding siblings ...)
  2005-06-26 17:49 ` [Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes pinskia at gcc dot gnu dot org
@ 2005-07-05 15:10 ` pinskia at gcc dot gnu dot org
  2005-07-18 18:35 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-05 15:10 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-05 15:10 -------
*** Bug 22283 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jserv at kaffe dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
                   ` (5 preceding siblings ...)
  2005-07-05 15:10 ` pinskia at gcc dot gnu dot org
@ 2005-07-18 18:35 ` tromey at gcc dot gnu dot org
  2005-07-18 20:54 ` cvs-commit at gcc dot gnu dot org
  2005-07-18 20:58 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-07-18 18:35 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-07-18 18:35 -------
I'm testing a patch for this.
I didn't fix libtool but instead changed how we perform these compilations.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-04-26 23:19:25         |2005-07-18 18:35:02
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
                   ` (6 preceding siblings ...)
  2005-07-18 18:35 ` tromey at gcc dot gnu dot org
@ 2005-07-18 20:54 ` cvs-commit at gcc dot gnu dot org
  2005-07-18 20:58 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-18 20:54 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-18 20:54 -------
Subject: Bug 21058

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tromey@gcc.gnu.org	2005-07-18 20:54:01

Modified files:
	libjava        : ChangeLog Makefile.in sources.am 
	libjava/scripts: makemake.tcl 

Log message:
	PR libgj/21058:
	* sources.am, Makefile.in: Rebuilt.
	* scripts/makemake.tcl (emit_bc_rule): Create a temporary list
	file.
	(emit_source_var): Don't emit patsubst with './'.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3710&r2=1.3711
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&r1=1.529&r2=1.530
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/sources.am.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/scripts/makemake.tcl.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes
  2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
                   ` (7 preceding siblings ...)
  2005-07-18 20:54 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-18 20:58 ` tromey at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-07-18 20:58 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-07-18 20:58 -------
I checked in a fix on the trunk.
I think this is already fixed on the 4.0 branch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21058


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-07-18 20:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-16 16:01 [Bug libgcj/21058] New: libgcj can't find class green at redhat dot com
2005-04-26 20:20 ` [Bug libgcj/21058] " tromey at gcc dot gnu dot org
2005-04-26 20:47 ` green at redhat dot com
2005-04-26 23:19 ` [Bug libgcj/21058] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-06  3:21 ` green at redhat dot com
2005-06-26 17:49 ` [Bug libgcj/21058] [4.1 Regression] fragile libgcj link process omits some inner classes pinskia at gcc dot gnu dot org
2005-07-05 15:10 ` pinskia at gcc dot gnu dot org
2005-07-18 18:35 ` tromey at gcc dot gnu dot org
2005-07-18 20:54 ` cvs-commit at gcc dot gnu dot org
2005-07-18 20:58 ` 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).