[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jacorb-developer
Subject:    [jacorb-developer] jikes 1.06 Compiler on Linux has problems in OfferEvaluator.java
From:       Marcel Ruff <ruff () swand ! lake ! de>
Date:       1999-10-27 15:24:43
Message-ID: 3817193B.6CE306B2 () swand ! lake ! de
[Download RAW message or body]

Hi,

compiling JacORB1_0-beta12 with JKD 1.2pre2 from blackdown on
Linux glibc 2.1 and
using jikes 1.06 from alphaworks.ibm.com gives following error:

(/JacORB1_0-beta12/src/jacorb/trading/impl/OfferEvaluator.java)

-----------------ERROR from jikes:---------------------------
Found 2 semantic errors compiling "OfferEvaluator.java":

    36. public class OfferEvaluator implements Runnable,
OfferEvaluator.Listener

<--------------------------------------------------------->
*** Error: The class "jacorb/trading/impl/OfferEvaluator" is circularly
defined with its super type(s).


   105.     new Thread(this).start();
            <-------------->
*** Error: No match was found for constructor
"Thread(jacorb.trading.impl.OfferEvaluator)".
----------------ERROR - end -------------------------------


jikes doesn't like the interesting construct:


-------------------snippet-----------------------------
public class OfferEvaluator implements Runnable, OfferEvaluator.Listener

{
...
  interface Listener
  {
      ...
   }
...
}
-------------------snippet-end--------------------------

Is it valid to use an inner class as a base class? (is jikes wrong or
right?)
If i put the interface Listerner outside of class OfferEvaluator and
change OfferEvaluator.Listener to Listener, jikes compiles fine.

Marcel



--
Marcel Ruff
ruff@swand.lake.de
http://www.lake.de/home/lake/swand/






[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic