Skip to content

[ji] support re-reifying class hierarchy#8185

Merged
enebo merged 7 commits intojruby:masterfrom
kares:fix-java_sub_class_re-reify3
Apr 29, 2024
Merged

[ji] support re-reifying class hierarchy#8185
enebo merged 7 commits intojruby:masterfrom
kares:fix-java_sub_class_re-reify3

Conversation

@kares
Copy link
Member

@kares kares commented Apr 2, 2024

an attempt at fixing proper re-reification of Java (sub-)class hierarchy... (#8141)

this version behaves the same 99% of production uses (Java class name is kept); but when a Java class gets re-reified it will start using a versioned suffix (@v1) for the Java class name.

2 previous attempts:

@kares kares linked an issue Apr 2, 2024 that may be closed by this pull request
@kares kares marked this pull request as ready for review April 2, 2024 12:42
@kares kares force-pushed the fix-java_sub_class_re-reify3 branch from c9b9c32 to ec94c2d Compare April 3, 2024 06:35
@kares kares requested a review from headius April 3, 2024 07:10
@kares kares added this to the JRuby 9.4.7.0 milestone Apr 3, 2024
Copy link
Member

@headius headius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, only note is about us making package name configurable in preparation for modularity work in JRuby 10.

}

private String getReifiedJavaClassName() {
final String basePackagePrefix = "rubyobj.";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a good time to select a new package name that can fit in with JPMS, or perhaps to provide a way for users to configure the package name.

@enebo enebo merged commit 254c970 into jruby:master Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

can not re-reify sub-class of a Java sub-class

3 participants