This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/298: inner class $finit$ compilation error
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/298: inner class $finit$ compilation error
- From: osk at hem dot passagen dot se
- Date: 4 Aug 2000 12:06:31 -0000
- Reply-To: osk at hem dot passagen dot se
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
>Number: 298
>Category: gcj
>Synopsis: inner class $finit$ compilation error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 04 05:16:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Oskar Liljeblad
>Release: unknown-1.0
>Organization:
>Environment:
egcs 2.96 20000731
>Description:
Compile the two files below like this:
$ gcj -C AbstractList.java LinkedList.java
LinkedList.java: In class `LinkedList$Entry':
LinkedList.java: In method `<init>(LinkedList)':
LinkedList.java:8: Can't find method `$finit$()' in type `LinkedList$Entry'. Candidates are:
`$finit$()' in `LinkedList$Entry'
`$finit$()' in `AbstractList'.
}
^
1 error
$
This is a weird error because any of the following things
fixes the error:
* Compile using "gcj -C LinkedList.java AbstractList.java"
instead.
* Remove the '= 0' initalization in AbstractList.
* Remove the '= null' initialization in LinkedList.Entry.
>How-To-Repeat:
Put this in LinkedList.java:
class LinkedList extends AbstractList {
class Entry {
Object data = null;
}
}
Put this in AbstractList.java:
abstract class AbstractList {
int modCount = 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: