Skip to content

java.nio.Buffer.isReadOnly method is not accessible #7132

Closed
@mcku

Description

@mcku
scala> java.nio.ByteBuffer.allocate(1).isReadOnly

Scala 2 returns false as expected.

Dotty displays the following error message instead:

variable isReadOnly cannot be accessed as a member of java.nio.ByteBuffer from module class rs$line$1$

Same applies to CharBuffer, IntBuffer, LongBuffer, et al.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions