Skip to content

StackOverflowError with pattern-matching switch #485

@unascribed

Description

@unascribed

Vineflower version: 1.12.0-SNAPSHOT (20250403.154216-4) — also reproduced on 1.11.1 and 1.10.1.

In the course of trying to debug an error where Proguard also explodes on this class (but chugs along and just produces invalid bytecode, leading to a runtime WrongMethodTypeException) I was trying to decompile this class with Vineflower to compare a before/after, but instead got a decompile error. The error is very long, being a stack overflow, so here it is as a file: InputRenderer.java

The offending class file is here (compressed so GitHub will let me upload it): InputRenderer.class.gz — it's compiled for 24 with preview features, but I don't believe this class uses any of them.

And the original source code is here: https://git.sleeping.town/unascribed/unmino/src/tag/0.4.0/src/engine/java/com/unascribed/unvkit/render/InputRenderer.java

The file is nominally AGPLv3, but for the avoidance of doubt: As the sole copyright holder I release this revision of the source file and class file under the MIT License, for the convenience of the Vineflower team.

The MIT License

Copyright (c) 2025 Una Kearney

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

I am in the Matrix as @unascribed:sleeping.town if a faster discussion channel is wanted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions