Skip to content

fix: singleton annotation locations#1642

Merged
derklaro merged 1 commit into
nightlyfrom
wrong-singleton-annotation-locations
May 26, 2025
Merged

fix: singleton annotation locations#1642
derklaro merged 1 commit into
nightlyfrom
wrong-singleton-annotation-locations

Conversation

@derklaro

Copy link
Copy Markdown
Member

Motivation

Some singleton annotations were located at the wrong places and should be moved to their respective factory methods.

Modification

The singleton annotation for the node configuration was located both on the implementation and the interface. This is not acceptable as scope annotations are not allowed on interfaces/abstract classes and the implementation is not relevant to the binding builder, therefore the annotation was ignored there anyway. Same applies to the wrapper configuration.

Result

The singleton scope annotations are now located at the factory methods rather than at locations where they don't have any effect.

@derklaro derklaro added this to the 4.0.0-RC12 milestone May 26, 2025
@derklaro derklaro requested a review from 0utplay May 26, 2025 21:57
@derklaro derklaro self-assigned this May 26, 2025
@derklaro derklaro added p: high This issue or pull request has a high priority. v: 4.X This pull should be included in the 4.0 release in: node An issue/pull request releated to the node module code t: fix A pull request introducing a fix for a bug. in: wrapper An issue/pull request releated to the wrapper module code labels May 26, 2025
@github-actions

Copy link
Copy Markdown

Test Results

 50 files  ±0   50 suites  ±0   1m 42s ⏱️ +18s
446 tests ±0  446 ✅ ±0  0 💤 ±0  0 ❌ ±0 
777 runs  ±0  777 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 3802b87. ± Comparison against base commit 85defd7.

@derklaro derklaro merged commit 5b74133 into nightly May 26, 2025
5 checks passed
@derklaro derklaro deleted the wrong-singleton-annotation-locations branch May 26, 2025 22:01
derklaro added a commit that referenced this pull request May 26, 2025
### Motivation
Some singleton annotations were located at the wrong places and should
be moved to their respective factory methods.

### Modification
The singleton annotation for the node configuration was located both on
the implementation and the interface. This is not acceptable as scope
annotations are not allowed on interfaces/abstract classes and the
implementation is not relevant to the binding builder, therefore the
annotation was ignored there anyway. Same applies to the wrapper
configuration.

### Result
The singleton scope annotations are now located at the factory methods
rather than at locations where they don't have any effect.
GiantTreeLP pushed a commit to GiantTreeLP/CloudNet that referenced this pull request Jun 7, 2025
### Motivation
Some singleton annotations were located at the wrong places and should
be moved to their respective factory methods.

### Modification
The singleton annotation for the node configuration was located both on
the implementation and the interface. This is not acceptable as scope
annotations are not allowed on interfaces/abstract classes and the
implementation is not relevant to the binding builder, therefore the
annotation was ignored there anyway. Same applies to the wrapper
configuration.

### Result
The singleton scope annotations are now located at the factory methods
rather than at locations where they don't have any effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: node An issue/pull request releated to the node module code in: wrapper An issue/pull request releated to the wrapper module code p: high This issue or pull request has a high priority. t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants