Skip to content

[4.35+][Internal] TryStatement's secret return value location is useless #3251

Description

@srikanth-sankaran

org.eclipse.jdt.internal.compiler.ast.TryStatement creates a secret variable where a return statement in the the try block can stash away the value to be returned which can then be picked up by the finally block.

This mechanism is for the jsr/ret days and has no place in the JDK6+ code generation scheme.

Only impediment to this significant clean up will likely be many test failures due to bytecode disassembly differences and comparator differences :(

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions