Add ElementType.TYPE to ActorType
See original GitHub issueDescribe the proposal
Hi, I want to use the actor model with Kotlin. Currently, the ActorType
annotation in java is targeted at ElementType.TYPE_USE which is incompatible with kotlin interface.
Adding ElementType.TYPE to the annotation target field should work. Can we add it?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ElementType (Java Platform SE 8 ) - Oracle Help Center
The TYPE_USE constant includes type declarations and type parameter declarations as a convenience for designers of type checkers which give semantics to ...
Read more >Issues · dapr/java-sdk - GitHub
Add ElementType.TYPE to ... Exception from Actor's method is not surfaced to the caller area/actor/client ... How to specify type with metadata of...
Read more >How @Target(ElementType.ANNOTATION_TYPE) works
Denotes that the annotated String element, represents a logical type and ... to include to data model class simply by adding annotation @PasswordMatches:...
Read more >java-sdk - Codecov
Fix App-IDs across examples and tests · Update docs for configuration api · Add ElementType.Type to ActorType · Bumping spring-boot-starter-web to 2.7.5(latest).
Read more >Annotations in Java - Beknazar - Medium
Annotations are the way we can add metadata to class declaration, ... TYPE) - to use in class, interface (including annotation type), ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Of course, created #812
According to Kotlin docs, it seems currently kotlin lacks some native java ElementType enum values.
For my project, rewriting the ActorType annotation class with
ElementType.TYPE
will let it annotate a kotlin interface. Otherwise, the kotlin compiler throws an error that saysThis annotation is not applicable to target 'interface'
.