bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #44398] Unnecessary Warning when binding java object ins


From: ruuns
Subject: [Bug-kawa] [bug #44398] Unnecessary Warning when binding java object instances to a name
Date: Sun, 01 Mar 2015 14:54:21 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0

URL:
  <http://savannah.gnu.org/bugs/?44398>

                 Summary: Unnecessary Warning when binding java object
instances to a name
                 Project: Kawa
            Submitted by: ruuns
            Submitted on: So 01 Mär 2015 14:54:20 GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Documentation typo/error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi, this is an issue which is probably not very important but i would like to
report it still for your knowledge.

I've tested some things in the REPL with some objects created with
define-simple-class and found maybe an unnecessary warning. 

Assume any define-simple-class definition e.g.

(define-simple-class point () (x init-value: 10))


You get no problem by using it with:

#|kawa:20|# (point):x
10
#|kawa:21|# (let ((a (point))) a:x)
10

But if you bind an instance to a name via define, you get an unexpected
warning "no known slot" although the correct value is returned.

#|kawa:22|# (define b (point))
#|kawa:23|# b:x
/dev/stdin:23:1: warning - no known slot 'x' in java.lang.Object
10


Ruuns




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44398>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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