Skip to content

NoMethodError when calling protected java method from subclass On java 9 #5284

@yamam

Description

@yamam

Environment

jruby 9.2.0.0 (2.5.0) 2018-05-24 81156a8 Java HotSpot(TM) 64-Bit Server VM 9.0.4+11 on 9.0.4+11 +jit [mswin32-x86_64]

test.rb

class MyHBox < javafx.scene.layout.HBox
    def layoutChildren
        super
    end
end

MyHBox.new.layoutChildren

Expected Behavior

No error occurs.

Actual Behavior

WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess to method sun.nio.ch.SelChImpl.getFD()
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess to field sun.nio.ch.FileChannelImpl.fd
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess to field java.io.FileDescriptor.fd
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess to field java.io.FileDescriptor.handle
NoMethodError: super: no superclass method `layoutChildren' for #<MyHBox:0x6d3c232f>
  layoutChildren at test.rb:3
          <main> at test.rb:8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions