New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yamam opened this Issue Aug 20, 2018 · 5 comments

Comments

Projects
None yet
4 participants
@yamam

yamam commented Aug 20, 2018

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
@monkstone

This comment has been minimized.

Show comment
Hide comment
@monkstone

monkstone Aug 20, 2018

Contributor

Hi I reported this earlier but closed the issue because it seems fixed on java 10 (and by now java 9 is history) #4851

Contributor

monkstone commented Aug 20, 2018

Hi I reported this earlier but closed the issue because it seems fixed on java 10 (and by now java 9 is history) #4851

@yamam

This comment has been minimized.

Show comment
Hide comment
@yamam

yamam Aug 20, 2018

This issue also occurs on java 10.0.2.

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

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:0x76075d65>
  layoutChildren at test.rb:3
          <main> at test.rb:8

yamam commented Aug 20, 2018

This issue also occurs on java 10.0.2.

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

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:0x76075d65>
  layoutChildren at test.rb:3
          <main> at test.rb:8
@yamam

This comment has been minimized.

Show comment
Hide comment
@yamam

yamam Aug 21, 2018

javafx is available on java 10.

If you run the script on jruby 9.1.16.0, no error occurs.

$ jruby-9.1.16.0/bin/jruby.exe test.rb
$

yamam commented Aug 21, 2018

javafx is available on java 10.

If you run the script on jruby 9.1.16.0, no error occurs.

$ jruby-9.1.16.0/bin/jruby.exe test.rb
$
@kares

This comment has been minimized.

Show comment
Hide comment
@kares

kares Sep 12, 2018

Member

let's mark this one as a 9.2 regression according to ^^^

Member

kares commented Sep 12, 2018

let's mark this one as a 9.2 regression according to ^^^

@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Sep 19, 2018

Member

Bump to 9.2.2 since we've started pushing module stuff forward. We should be able to provide a script in 9.2.2 that generates a set of module flags needed by your JRuby app if any JPMS warnings are being displayed.

Member

headius commented Sep 19, 2018

Bump to 9.2.2 since we've started pushing module stuff forward. We should be able to provide a script in 9.2.2 that generates a set of module flags needed by your JRuby app if any JPMS warnings are being displayed.

@headius headius modified the milestones: JRuby 9.2.1.0, JRuby 9.2.2.0 Sep 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment