This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcj/298: inner class $finit$ compilation error



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]