[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #6721] incorrect result of lowestCommonSuperType in gnu.

From: nobody
Subject: [Bug-kawa] [bug #6721] incorrect result of lowestCommonSuperType in gnu.bytecode.Type
Date: Sun, 23 Nov 2003 14:36:06 -0500
User-agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

=================== BUG #6721: FULL BUG SNAPSHOT ===================

Submitted by: None                    Project: Kawa                         
Submitted on: Sun 11/23/2003 at 14:36
Category:  None                       Severity:  5 - Major                  
Bug Group:  Unexpected result         Resolution:  None                     
Assigned to:  None                    Status:  Open                         

Summary:  incorrect result of lowestCommonSuperType in gnu.bytecode.Type

Original Submission:  When one of the arguments of lowestCommonSuperType is 
char_type and the other byte_type it returns null where it should return 

possible fix:

       return t2;

     else if (t2.isSubtype(t1))

       return t1;

+    else if (t1 == char_type && t2.isSubtype(int_type))

+      return int_type;

+    else if (t2 == char_type && t1.isSubtype(int_type))

+      return int_type;



        // the only chance left is that t1 and t2 are ClassTypes.

--Arjan Boeijink

No Followups Have Been Posted

CC list is empty

No files currently attached

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]