On Feb 18, 2009, at 2:48 PM, BerlinBrown wrote:


I was trying to access a public inner class and a field within that
field.  For example:


fc.map(FileChannel.MapMode.READ_ONLY, 0, sz);

public abstract class FileChannel

public static class MapMode {

        public static final MapMode READ_ONLY
            = new MapMode("READ_ONLY");


Clojure uses the same name for inner classes as Java uses under the covers-the outer class followed by $ followed by the inner class.

What you're looking for here is:

user=> java.nio.channels.FileChannel$MapMode/READ_ONLY
#<MapMode READ_ONLY>

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to