bugKawa - Bugs: bug #32223, Subclassing without default...

 
 

bug #32223: Subclassing without default constructor

Submitted by:  Helmut Eller <ellerh>
Submitted on:  Mon 24 Jan 2011 11:24:35 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 24 Jan 2011 09:57:50 PM UTC, comment #3:

I checked in various changes to get a more friendly response on this error.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Mon 24 Jan 2011 05:48:53 PM UTC, comment #2:

I only realized my mistake after submission.
I think the only thing that needs fixing
is the confusing error message.

Helmut Eller <ellerh>
Mon 24 Jan 2011 04:55:59 PM UTC, comment #1:

Kawa isn't realizing that the Foo in the invoke-special is foo.Foo. Replacing it by the following seems to work:

(invoke-static foo.Foo (this) 'init i))

So, should Kawa recognize Foo as foo.Foo here? Maybe, but if not at least it should complain if it doesn't recognize the typename. So improving the diagnostics is needed anyway, since we get the same confusing failure on a typo.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Mon 24 Jan 2011 11:24:35 AM UTC, original submission:

With this Java class:
And this Scheme class:
Note that Foo is in a non-default package.
I get this error:

Helmut Eller <ellerh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by ellerh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 Jan 2011 09:57:50 PM UTCbothnerStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 24 Jan 2011 04:55:59 PM UTCbothnerStatusNone=>Confirmed
      Assigned toNone=>bothner

    Back to the top


    Powered by Savane 3.1-cleanup1