-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Some Java modules do not respond_to name #2468
Comments
kares
added a commit
to kares/jruby
that referenced
this issue
Aug 11, 2015
... since its counted among `ObjectSpace.each_object(Module)` (jruby#2468)
kares
added a commit
to kares/jruby
that referenced
this issue
Aug 24, 2015
... definite-ultimate fix for jruby#2468
kares
added a commit
to kares/jruby
that referenced
this issue
Aug 24, 2015
... definite-ultimate fix for jruby#2468
kares
added a commit
to kares/jruby
that referenced
this issue
Dec 4, 2015
... definite-ultimate fix for jruby#2468
kares
added a commit
to kares/jruby
that referenced
this issue
Jan 4, 2016
... definite-ultimate fix for jruby#2468
kares
added a commit
to kares/jruby
that referenced
this issue
Feb 21, 2016
... definite-ultimate fix for jruby#2468
kares
added a commit
to kares/jruby
that referenced
this issue
Mar 21, 2016
... definite-ultimate fix for jruby#2468
kares
added a commit
to kares/jruby
that referenced
this issue
Mar 22, 2016
- `pkg.name` has been working since 1.7.22/9.0.1.0 (jruby#2468) - handling :object_id as it is quite surprising to not have - can handle :throw/:catch since they're not valid package names - commented-out methods that would be good to have as well
kares
added a commit
to kares/jruby
that referenced
this issue
Mar 22, 2016
- `pkg.name` has been working since 1.7.22/9.0.1.0 (jruby#2468) - handling :object_id as it is quite surprising to not have - can handle :throw/:catch since they're not valid package names - commented-out methods that would be good to have as well
kares
added a commit
that referenced
this issue
Mar 22, 2016
- `pkg.name` has been working since 1.7.22/9.0.1.0 (#2468) - handling :object_id as it is quite surprising to not have - can handle :throw/:catch since they're not valid package names - commented-out methods that would be good to have as well
ujifgc
added a commit
to padrino/padrino-framework
that referenced
this issue
May 11, 2016
ujifgc
added a commit
to padrino/padrino-framework
that referenced
this issue
Sep 8, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In jruby,
Module.method_defined?(:name)
istrue
. However, not all modules respond to it:Most of these modules, despite not claiming to respond to
name
, actually do respond to it, and once you call thename
method on them, then they will claim to respond to it.The one exception to that is
JavaPackageModuleTemplate
, which doesn't respond to it, and raises anArgumentError
when called:I think
JavaPackageModuleTemplate
should be fixed to definename
, and all of the modules that claim not to respond to it but actually do should be fixed to claim they respond to it.This bug causes rack-unreloader to break: jeremyevans/rack-unreloader#4
The text was updated successfully, but these errors were encountered: