Skip to content
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

Allow Java classes to be extended by guest languages #6902

Closed
hymanroth opened this issue Jun 28, 2023 · 2 comments
Closed

Allow Java classes to be extended by guest languages #6902

hymanroth opened this issue Jun 28, 2023 · 2 comments

Comments

@hymanroth
Copy link

Feature request

Jruby allows additional attributes and methods to be added to a Java class. We are considering porting a large project from JRuby to Graal/Truffle but we have thousands of lines of legacy code which depend on Java classes which have been extended (monkey patched) using JRuby.

See this stackoverflow question I posted which includes examples: https://stackoverflow.com/questions/76567012/extending-monkey-patching-java-classes-in-truffle-ruby

If, for technical reasons, it is not possible for Java classes to be extended I would be very grateful if someone could suggest a workaround because right now we're stuck.

I imagine this issue could cause problems for other people trying to port projects from Jruby....

Thanks.

@oubidar-Abderrahim
Copy link
Member

Hi, Thank you for your suggestion, we'll take a look into it shortly

@eregon
Copy link
Member

eregon commented Jul 4, 2023

Let's track this in oracle/truffleruby#3139
I think this cannot reasonably be solved in Truffle, or not only, so better to track it as a TruffleRuby issue.

@eregon eregon closed this as completed Jul 4, 2023
@eregon eregon added the ruby label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants