bugKawa - Bugs: bug #37684, Nested class types of fields...

 
 

bug #37684: Nested class types of fields (regression between 7318 and 7326 revisions)

Submitted by:  Alex Moiseenko <imdagger>
Submitted on:  Tue 06 Nov 2012 09:45:08 PM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: Compile-time exceptionStatus: 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.

 

Wed 07 Nov 2012 01:36:00 AM UTC, comment #1:

Thanks for the good test report!
I've checked in a fix as well as the test case,

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Tue 06 Nov 2012 09:45:08 PM UTC, original submission:

This code compiles unsuccessfully on the latest Kawa:
(module-export TestNestedType x1 x2)
(define-alias C java.lang.Character)

(define x1 ::C #!null)
(define x2 ::C:Subset #!null)

(define-simple-class TestNestedType ()
(x1 ::C)
(x2 ::C:Subset))

Lets try 7326M revision:

$ java -jar kawa-1.12.1.jar --version
Kawa 1.12.1 (revision 7326M)
Copyright (C) 2011 Per Bothner

$ java -jar kawa-1.12.1.jar --main -C test.scm
(compiling test.scm to test)
test.scm:5:14: invalid type spec (must be "type" or 'type or <type>)
test.scm:9:11: invalid type spec (must be "type" or 'type or <type>)

But it worked on the old Kawa (at 7318M revision):

$ java -jar kawa.jar --version
Kawa 1.12.1 (revision 7318M)
Copyright (C) 2011 Per Bothner

$ java -jar kawa.jar --main -C test.scm
(compiling test.scm to test)

And decompiled class looks good and correct:
public class TestNestedType
{
public Character x1;
public Character.Subset x2;
}

Alex Moiseenko <imdagger>

 

(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 imdagger (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
    Wed 07 Nov 2012 01:36:00 AM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1