Help me get a Java object's name

Olof-Joachim Frahm olof at
Fri Apr 14 23:57:33 UTC 2017

On Fri, Apr 14, 2017 at 01:43:38PM +0000, Mirko Vukovic wrote:
> It is of class #<java class>
> I would like to grab the "FORMULA" in the above object description.
> Slime can see it, it's inspector can see it, even DESCRIBE can see it:
> READER> (describe *)
> #< FORMULA {11CC24A}> is an object of
> The wrapped Java object is an instance of
> But, I could not figure out a way to get to "FORMULA".  I tried to
> accessing the slot `name' but that does
> not work.

It's a method of the Java enum, not a field, or slot, e.g.

    (java:jcall "name" (java:jfield "org.armedbear.lisp.Stream$EolStyle" "RAW"))

returns `"RAW"`, so either that or `(#"name" ...)` via JSS should work.

More information about the armedbear-devel mailing list