Basically what I need to do is this
FileChannel.MapMode.READ_ONLY
I tried doing the obvious
(.. FileChannel MapMode READ_ONLY)
but that ends up throwing an exception
java.lang.NoSuchFieldException: MapMode
even the / notation specified as for access static fields in the interop documentation produces the same exception
(. (FileChannel/MapMode) READ_ONLY)
You access inner classes with $
Mind that if you are importing
FileChannelyou should also importFileChannel$MapMode.