From 802e0cb58849a54608ac363ef76266e8ce6d6646 Mon Sep 17 00:00:00 2001 From: dchandler Date: Sun, 13 Jul 2003 17:40:02 +0000 Subject: [PATCH] If this method uses the Wylie representation, you get an infinite recursion when you do a TMW->Wylie conversion for a document with glyphs that have no known Wylie. --- source/org/thdl/tib/text/DuffCode.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/org/thdl/tib/text/DuffCode.java b/source/org/thdl/tib/text/DuffCode.java index 526f96f..702f121 100644 --- a/source/org/thdl/tib/text/DuffCode.java +++ b/source/org/thdl/tib/text/DuffCode.java @@ -162,13 +162,13 @@ public final class DuffCode { } /** * @param TMW if this DuffCode represents a TMW glyph, not a TM glyph - * @return a string representation of this object */ + * @return a string representation of this object that does not refer + * to its Wylie representation (because the TMW->Wylie error messages + * call upon this when there is none, and you don't want an infinite + * loop (manifesting as a StackOverflowError)) */ public String toString(boolean TMW) { boolean[] err = new boolean[] { false }; - String wylie = TibetanMachineWeb.getWylieForGlyph(this, err); - if (err[0]) wylie = "undefined"; - return "