Skip to content

Skript cannot save classes imported by skript-reflect. #56

Open
@ashandelle

Description

Describe the bug
Skript cannot serialize imported classes even if they implement serializable. (Only tested on BigDecimal and MathContext)

To reproduce

  1. Import the class
import:
    java.math.BigDecimal
  1. Create variable
set {test} to new BigDecimal(100)
  1. Attempt to reload or stop (save variables)

After doing this errors appear and skript will be unable to save any variables.

Expected behavior
Expected to be able to save java's BigDecimal class to variables.csv but was instead unable to save anything.

Screenshots
image
image
image
image

Server information

  • skript-reflect:
  • Skript: 2.6.3
  • Bukkit: 1.18.2-R0.1-SNAPSHOT (Spigot)
  • Minecraft: 1.18.2
  • Java: 18.0.1.1 (Java HotSpot(TM) 64-Bit Server VM 18.0.1.1+2-6)
  • OS: Windows 10 amd64 10.0

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions