bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bugs #8922] Child is unable to call protected method


From: Per Bothner
Subject: [Bug-kawa] [bugs #8922] Child is unable to call protected method
Date: Thu, 13 May 2004 17:41:50 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113

This mail is an automated notification from the bugs tracker
 of the project: Kawa.

/**************************************************************************/
[bugs #8922] Latest Modifications:

Changes by: 
                Per Bothner <address@hidden>
'Date: 
                Thu 05/13/04 at 21:41 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Works for me
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
This bug has been fixed in the CVS version.

There is still a different bug - you now get:
ChildSupport.scm:8:1: warning - no accessible method `myMethod' in 
java.lang.Object
The reason for this is that the 'make' call isn't getting inlined - but that's 
an related issue.  As a work-around, you can add a cast (call to the as 
function) or assign the make result to a variable that is declared to be a 
<Child>.  You still get a run-time call to the make function, but you don't get 
the warning at least.






/**************************************************************************/
[bugs #8922] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8922>
Project: Kawa
Submitted by: 0
On: Wed 05/12/04 at 22:26

Category:  Scheme language
Severity:  5 - Average
Item Group:  Unexpected result
Resolution:  Works for me
Assigned to:  None
Status:  Closed


Summary:  Child is unable to call protected method

Original Submission:  Child is unable to call protected method in parent class 
in
different package.  To demonstrate:

javac fpackage/Father.java
java kawa.repl --warn-undefined-variable -C ChildSupport.scm
(compiling ChildSupport.scm)
ChildSupport.scm:12:4: warning - no accessible method `protectedMethod' in Child


Follow-up Comments
------------------


-------------------------------------------------------
Date: Thu 05/13/04 at 21:41         By: bothner
This bug has been fixed in the CVS version.

There is still a different bug - you now get:
ChildSupport.scm:8:1: warning - no accessible method `myMethod' in 
java.lang.Object
The reason for this is that the 'make' call isn't getting inlined - but that's 
an related issue.  As a work-around, you can add a cast (call to the as 
function) or assign the make result to a variable that is declared to be a 
<Child>.  You still get a run-time call to the make function, but you don't get 
the warning at least.






File Attachments
-------------------

-------------------------------------------------------
Date: Wed 05/12/04 at 22:26  Name: protected.patch  Size: 987KB   By: None

http://savannah.gnu.org/bugs/download.php?item_id=8922&amp;item_file_id=1298






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8922>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

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