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

Mistake in TypedLinkedList?



I have noticed something rather odd about the set(int,Object) method in the
generated TypedLinkedList class. It is not defined. This means that the
set(int,Object) method defined by the Linkedlist superclass may be used to
violate the strict syntax tree property enforced by SableCC.

It is such a small change that diff are barely woth it. Just add the
following few lines to the TypedLinkedList declaration in the "utils.txt"
macro file.


     public void set(int index, Object o)
     {
	super.set(index, cast.cast(o));
     }

There are still a few wierd were the strict DAG property of SableCC can be
violated, but you have be doing something very strange. I've reported this
on this list previously.

-- 
Jon Shapcott <eden@xibalba.demon.co.uk>
"This is the Space Age, and we are Here To Go" - Wlliam S. Burroughs



-- 
Etienne M. Gagnon, Ph.D.                             egagnon@j-meg.com
President                                      http://www.sablevm.org/
J-Meg inc.                                     http://www.sablecc.org/