public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/5758: compilation failure with GCJ pre-3.1 and nested classes
@ 2002-02-23  7:56 goran
  0 siblings, 0 replies; 3+ messages in thread
From: goran @ 2002-02-23  7:56 UTC (permalink / raw)
  To: gcc-gnats

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1952 bytes --]


>Number:         5758
>Category:       java
>Synopsis:       compilation failure with GCJ pre-3.1 and nested classes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 23 06:06:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.1 20020223 (experimental)
>Organization:
kirra.net / SchlumbergerSema
>Environment:
System: Linux cm-linux.lla.sema.se 2.4.17 #8 mån feb 18 17:25:46 CET 2002 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --host=i686-pc-linux-gnu --prefix=/usr/local/gcc --enable-threads --enable-languages=c++,java : (reconfigured)  : (reconfigured) ./configure --host=i686-pc-linux-gnu --prefix=/usr/local/gcc --enable-threads --enable-languages=c++,java
>Description:

in this case when extending a "root class" from a public inner class:

---- file RedBlackTree.java -------------------------------
public class RedBlackTree 
{
    public static abstract class AbstractRBNode
    {
    }
}
---- file AccountingTreeBlock.java -------------------------------
public abstract class AccountingTreeBlock extends RedBlackTree.AbstractRBNode {
}
--------------------------------------------------------

Compiling gives:bash-2.05a$ gcj -Wall -c AccountingTreeBlock.java 
AccountingTreeBlock.java:2: Superclass `RedBlackTree.AbstractRBNode' of class `AccountingTreeBlock' not 
  found.   public abstract class AccountingTreeBlock extends RedBlackTree.AbstractRBNode {
                                                             ^
1 error

It compiles OK with JDK 1.3.1 and 1.4 and Jikes 1.5



>How-To-Repeat:
See above
No preprocessor output given by gcj

>Fix:
Break out the inner class as a "root class" in it's own .java file


>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: java/5758: compilation failure with GCJ pre-3.1 and nested classes
@ 2002-03-02 10:04 apbianco
  0 siblings, 0 replies; 3+ messages in thread
From: apbianco @ 2002-03-02 10:04 UTC (permalink / raw)
  To: apbianco, gcc-bugs, gcc-prs, goran, java-prs, nobody

Synopsis: compilation failure with GCJ pre-3.1 and nested classes

Responsible-Changed-From-To: unassigned->apbianco
Responsible-Changed-By: apbianco
Responsible-Changed-When: Sat Mar  2 10:04:26 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: feedback->closed
State-Changed-By: apbianco
State-Changed-When: Sat Mar  2 10:04:26 2002
State-Changed-Why:
    I checked something in that fixes the problem. If it's not
    the case for you, just let me know and I'll re-open the PR:
    
      http://gcc.gnu.org/ml/java-patches/2002-q1/msg00585.html
    
    I'm also deleted the attached patch, as what was
    committed differs.
    
    Thank you for your report.

http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5758


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

* Re: java/5758: compilation failure with GCJ pre-3.1 and nested classes
@ 2002-02-28 16:26 apbianco
  0 siblings, 0 replies; 3+ messages in thread
From: apbianco @ 2002-02-28 16:26 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, goran, java-prs, nobody

Synopsis: compilation failure with GCJ pre-3.1 and nested classes

State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Thu Feb 28 15:52:03 2002
State-Changed-Why:
    I'm testing this patch, once it checks out, I'll check it
    in the branch and the trunk.

http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5758


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

end of thread, other threads:[~2002-03-02 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-23  7:56 java/5758: compilation failure with GCJ pre-3.1 and nested classes goran
2002-02-28 16:26 apbianco
2002-03-02 10:04 apbianco

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).