[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #39229] Empty string symbol lexer problem
From: |
Matthieu Vachon |
Subject: |
[Bug-kawa] [bug #39229] Empty string symbol lexer problem |
Date: |
Tue, 11 Jun 2013 13:48:15 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?39229>
Summary: Empty string symbol lexer problem
Project: Kawa
Submitted by: maoueh
Submitted on: Tue 11 Jun 2013 01:48:14 PM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The following piece of code does not compile (exception raised at the lexer
level):
(equal? '|| (string->symbol ""))
This was compiling before. Sure it's not a common use case but we had used it
in the past to directly <String> object (symbol was <String> at that time).
I changed it in my code base but thought it would be good to solve it.
Problem comes from the `packageManager == endPos - 1` condition. When symbol
is the empty string, packagerManager is -1 and endPos is 0 (-1 == 0 - 1).
I will post a fix shortly.
Regards,
Matt
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39229>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #39229] Empty string symbol lexer problem,
Matthieu Vachon <=