isXander / isXander/YetAnotherConfigLib

Delegate provider should provide delegate, not instance of object

Open
#282 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
155
Forks
68
PR merge metrics
No merged PRs in 30d

Description

https://github.com/isXander/YetAnotherConfigLib/blob/0d8fcf8090a79e29338d925def54ccb06cf0223f/src/main/java/dev/isxander/yacl3/config/v3/KotlinExts.kt#L23

Delegate provider should provide delegate like ReadOnlyProperty. It provides instance of category directly instead, which leads to:

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open src/main/java/dev/isxander/yacl3/config/v3/KotlinExts.kt at line 23 and inspect the delegate provider's return value. Compare it with the ReadOnlyProperty behavior and the example shown in the issue. Done means the provider supplies the delegate rather than the category instance, avoiding the reported misuse.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.