Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.49.19-SNAPSHOT] Illegal Cast Exception when lowering elevation with a VTOL #5298

Closed
HoneySkull opened this issue Mar 30, 2024 · 1 comment · Fixed by #5299
Closed

[0.49.19-SNAPSHOT] Illegal Cast Exception when lowering elevation with a VTOL #5298

HoneySkull opened this issue Mar 30, 2024 · 1 comment · Fixed by #5299
Assignees
Labels

Comments

@HoneySkull
Copy link
Collaborator

Environment

Build Date: 2024-03-29T10:27:39.922754800
Today: 2024-03-30
Origin Project: MegaMek
Java Vendor: Eclipse Adoptium
Java Version: 11.0.20.1
Platform: Windows 11 10.0 (amd64)
System Locale: en_US
Total memory available to MegaMek: 2 GB

Description

Load a simple map with a VTOL and hit the lower elevation button. The following illegal cast exception appears and prevents the VTOL from lowering elevation. The VTOL is able to raise elevation.

image

Files

megamek.log

@kuronekochomusuke kuronekochomusuke self-assigned this Mar 30, 2024
@HoneySkull
Copy link
Collaborator Author

16:22:35,998 ERROR [megamek.MegaMek] {AWT-EventQueue-0}
megamek.MegaMek.lambda$main$0(MegaMek.java:63) - Uncaught Exception Detected
java.lang.ClassCastException: class megamek.common.VTOL cannot be cast to class megamek.common.IAero (megamek.common.VTOL and megamek.common.IAero are in unnamed module of loader 'app')
at megamek.client.ui.swing.MovementDisplay.actionPerformed(MovementDisplay.java:5026)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635)

kuronekochomusuke added a commit to kuronekochomusuke/megamek that referenced this issue Mar 31, 2024
kuronekochomusuke added a commit that referenced this issue Mar 31, 2024
Fix #5298 Illegal Cast Exception when lowering elevation with a VTO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants