bugKawa - Bugs: bug #36847, CharSequence#hashCode

 
 

bug #36847: CharSequence#hashCode

Submitted by:  Helmut Eller <ellerh>
Submitted on:  Sat 14 Jul 2012 05:36:18 PM UTC  
 
Category: Code generationSeverity: 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 16 Jul 2012 11:47:19 PM UTC, comment #1:

The JVM (and the JVM Spec) allows using invokeinterface on java.lang.CharSequence.hashCode, but it looks like Dalvik doesn't. However, javac doesn't generate invokeinterface, and it seems reasonable to follow javac here. Fix checked in.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sat 14 Jul 2012 05:36:18 PM UTC, original submission:

This example doesn't work on Android:

The log contains this message:

The problem seems to be caused by this:

CharSequence is an interface that doesn't epxlicitly define hashCode
but hashCode is defined on Object. I guess Kawa could just as well
use invokevirtual Object#hashCode.

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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Jul 2012 11:47:19 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1