Changeset 10018


Ignore:
Timestamp:
09/24/05 16:54:24 (16 years ago)
Author:
piso
Message:

getNamestring()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Pathname.java

    r10004 r10018  
    33 *
    44 * Copyright (C) 2003-2005 Peter Graves
    5  * $Id: Pathname.java,v 1.94 2005-09-22 23:16:49 piso Exp $
     5 * $Id: Pathname.java,v 1.95 2005-09-24 16:54:24 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    273273        if (type != NIL) {
    274274            sb.append('.');
    275             if (type instanceof AbstractString)
    276                 sb.append(type.getStringValue());
    277             else if (type == Keyword.WILD)
     275            if (type instanceof AbstractString) {
     276                String t = type.getStringValue();
     277                if (t.indexOf('.') >= 0) {
     278                    Debug.assertTrue(namestring == null);
     279                    return null;
     280                }
     281                sb.append(t);
     282            } else if (type == Keyword.WILD)
    278283                sb.append('*');
    279284            else
Note: See TracChangeset for help on using the changeset viewer.