Kotlin / Kotlin/multik

Investigate unchecked cast in NDArray.asType()

Open
#251 0 comments 0 reactions 0 assignees View on GitHub
ndarray
Dominant language
Kotlin
Stars
734
Forks
51
Avg merge
9h 52m
Merged PRs (30d)
6

Description

Investigate whether this cast can produce a ClassCastException at runtime and either add proper type checking or document why the cast is safe.

Contributor guide

Open the contributing guide

Research direction

Start at the NDArray.asType() entry point and inspect the unchecked cast and the types it handles. Run the relevant existing tests, if available, to determine whether a ClassCastException is possible. Done means adding type checking or documenting a demonstrated safety rationale.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
data
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.