Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented May 5, 2025

The fixes here were driven by net-imap tests (ruby/net-imap#454) that depended on these features to even start up the library and tests. The fixes include:

  • Improvements for Data subclasses, which were not fully supported at JRuby 10 release time.
  • Allow Data to have no fields.

There will need to be additional work to handle the variable table of data subclasses, rather than searching up the hierarchy, but this is enough to get the net-imap tests running.

headius added 2 commits May 5, 2025 13:28
* Initialize from a subclass of a data class should properly
  locate the variable table associated with the data class.
* Data should support zero-field definitions.

The way we are locating the variable table is not right and will
need to be reworked to support data subclasses with their own set
of instance variables, but this gets tests running on net-imap
that depended on these features.

See ruby/net-imap#454
@headius headius added this to the JRuby 10.0.1.0 milestone May 5, 2025
nevans added a commit to ruby/net-imap that referenced this pull request May 8, 2025
This should _not_ be merged into main.  😉

It's only temporary, until bugs in TruffleRuby and JRuby are addressed:
* jruby/jruby#8829
* truffleruby/truffleruby#3846
* truffleruby/truffleruby#3847

The JRuby bug is a showstopper.  The TruffleRuby bugs are cosmetic
(inspect "nil" vs "") or academic (we never create recursive Data).
nevans added a commit to ruby/net-imap that referenced this pull request May 8, 2025
This should _not_ be merged into main.  😉

It's only temporary, until bugs in TruffleRuby and JRuby are addressed:
* jruby/jruby#8829
* truffleruby/truffleruby#3846
* truffleruby/truffleruby#3847

The JRuby bug is a showstopper.  The TruffleRuby bugs are cosmetic
(inspect "nil" vs "") or academic (we never create recursive Data).
nevans added a commit to ruby/net-imap that referenced this pull request May 9, 2025
This should _not_ be merged into main.  😉

It's only temporary, until bugs in TruffleRuby and JRuby are addressed:
* jruby/jruby#8829
* truffleruby/truffleruby#3846
* truffleruby/truffleruby#3847

The JRuby bug is a showstopper.  The TruffleRuby bugs are cosmetic
(inspect "nil" vs "") or academic (we never create recursive Data).
nevans added a commit to ruby/net-imap that referenced this pull request May 13, 2025
This should _not_ be merged into main.  😉

It's only temporary, until bugs in TruffleRuby and JRuby are addressed:
* jruby/jruby#8829
* truffleruby/truffleruby#3846
* truffleruby/truffleruby#3847

The JRuby bug is a showstopper.  The TruffleRuby bugs are cosmetic
(inspect "nil" vs "") or academic (we never create recursive Data).
@eregon
Copy link
Member

eregon commented May 15, 2025

Let's merge this?
I think it is blocking ruby/net-imap#470

@headius
Copy link
Member Author

headius commented May 15, 2025

Yeah I'm done with this for now and did not run into other issues. I'll fix unrelated incompatibilities separately.

@headius headius merged commit 02c56b6 into jruby:master May 15, 2025
1 check passed
@headius headius deleted the data_fixes branch May 15, 2025 13:33
nevans added a commit to ruby/net-imap that referenced this pull request Oct 22, 2025
These tests failed at some point on TruffleRuby or JRuby.  We should
mark them as pend_if_jruby or pend_if_truffleruby blocks, in order to
detect when they are _fixed_ under those implementations.

Some bugs related to this (which may have been fixed?):
* jruby/jruby#8829
* truffleruby/truffleruby#3846
* truffleruby/truffleruby#3847

The JRuby bug is a showstopper.  The TruffleRuby bugs are cosmetic
(inspect "nil" vs "") or academic (we never create recursive Data).
nevans added a commit to ruby/net-imap that referenced this pull request Nov 29, 2025
These tests failed at some point on TruffleRuby or JRuby.  We should
mark them as pend_if_jruby or pend_if_truffleruby blocks, in order to
detect when they are _fixed_ under those implementations.

Some bugs related to this (which may have been fixed?):
* jruby/jruby#8829
* truffleruby/truffleruby#3846
* truffleruby/truffleruby#3847

The JRuby bug is a showstopper.  The TruffleRuby bugs are cosmetic
(inspect "nil" vs "") or academic (we never create recursive Data).
nevans added a commit to ruby/net-imap that referenced this pull request Dec 10, 2025
These tests failed at some point on TruffleRuby or JRuby.  We should
mark them as pend_if_jruby or pend_if_truffleruby blocks, in order to
detect when they are _fixed_ under those implementations.

Some bugs related to this (which may have been fixed?):
* jruby/jruby#8829
* truffleruby/truffleruby#3846
* truffleruby/truffleruby#3847

The JRuby bug is a showstopper.  The TruffleRuby bugs are cosmetic
(inspect "nil" vs "") or academic (we never create recursive Data).
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.

2 participants