Skip to content

IntersectionTypeBinding18.erasure() may return a non-reifiable result#3864

Open
stephan-herrmann wants to merge 1 commit intoeclipse-jdt:masterfrom
stephan-herrmann:issue3646
Open

IntersectionTypeBinding18.erasure() may return a non-reifiable result#3864
stephan-herrmann wants to merge 1 commit intoeclipse-jdt:masterfrom
stephan-herrmann:issue3646

Conversation

@stephan-herrmann
Copy link
Contributor

Preparation: remove now-dead code.

Relates to #3646

@stephan-herrmann
Copy link
Contributor Author

stephan-herrmann commented Feb 12, 2026

Reviving what fell between the cracks.

  • dead code previously removed no longer exists in master
  • much simpler implementation of ITB18.erasure()
  • redirect constantPoolName() through the improved erasure() for consistency
  • adjusted one code location that worked (i.e., not emitting an unwanted checkcast) only because erasure() returned the ITB18 unchanged (as pointed out be intermediate regressions)

@stephan-herrmann
Copy link
Contributor Author

@srikanth-sankaran do you agree on putting this on our list for 4.40 M1? I'm not aware of any observable defect we are fixing here (while of course internally the need for change is obvious).

@stephan-herrmann stephan-herrmann marked this pull request as ready for review February 12, 2026 15:12
@srikanth-sankaran
Copy link
Contributor

@srikanth-sankaran do you agree on putting this on our list for 4.40 M1? I'm not aware of any observable defect we are fixing here (while of course internally the need for change is obvious).

Sounds good.

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