Changeset 15504


Ignore:
Timestamp:
05/10/21 13:10:30 (8 months ago)
Author:
Mark Evenson
Message:

Allow JAVA:JCLASS to work for non-primitive arrays suffixed with "[]"

This allows constructs like (jclass "java.lang.Integer[]") to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/Java.java

    r15381 r15504  
    13941394          return Class.forName("[Z");
    13951395        } else {
    1396           return Class.forName(className); // Not going to work well
     1396          final String arrayTypeName
     1397            = "[L" + className.substring(0, className.length() - 2) + ";";
     1398          return Class.forName(arrayTypeName);
    13971399        }
    13981400      }
Note: See TracChangeset for help on using the changeset viewer.