Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Extend Standard CDS view with group by / or aggregated fields

I have the requirement to extend a standard SAP CDS view to add one field. The standard CDS view have a group by clause, therefore I'm getting the following error when I extend it: The Group by ...
darth-coder's user avatar
0 votes
0 answers
40 views

Customize auto-appended snippets in MkDocs Material for the glossary

Using Markdown with MkDocs Material, I'm trying to implement a glossary with automatically appended definitions and custom styling. I've successfully used the snippets extension to auto-append a ...
ABCdC's user avatar
  • 1
0 votes
1 answer
122 views

What is (wrong) between a static member qualifying type and an annotation?

I got an error from the following code. public @Nullable String getWhatever() { return whatever; } public void setWhatever(@Nullable final String whatever) { this.whatever ...
Jin Kwon's user avatar
  • 22.4k
2 votes
0 answers
102 views

Interface without Jakarta Validation annotation for validation in implementation class

I want to create a REST API in which I use Jakarta Validation constraint annotations such as @NotNull, @Valid, @Max... But I want to define the methods for the controller in an interface as follows: ...
FelixFeuerdorn's user avatar
1 vote
1 answer
37 views

JAXB (javax.xml.bind) won’t unmarshal nested <TMI> element (siblings bind fine). How should I annotate?

I’m unmarshalling an incoming XML into POJOs using JAXB (javax.xml.bind) with @XmlAccessorType(XmlAccessType.FIELD). Most fields under bind correctly for me (e.g. asFer, square, SOY, ab), but the ...
eddasahin61's user avatar
2 votes
2 answers
111 views

Customize Annotation in a ggplot2 with dynamic content and italics and supersripts [duplicate]

I'm looking to create a plot in R that dynamically retrieves and displays the results of a statistical test as an annotated text directly on the plot. I want to achieve precise formatting for the ...
thanmour's user avatar
-3 votes
1 answer
116 views

Repeatable annotations [closed]

I have a custom annotation @myAnno that I want repeatable. This @myAnno annotation is marked with another annotation called @Constraint. When I process an object I look for all annotations that are ...
A User's user avatar
  • 43
0 votes
0 answers
118 views

What's the easiest way of plotting gene annotation with Gviz GeneRegionTrack()?

I am currently looking for an easy way of plotting gene annotation with the GeneRegionTrack of the Bioconductor Gviz R package. The documentation claims to be able to plot gene annotation directly ...
Sofia's user avatar
  • 295
1 vote
1 answer
48 views

Annotate JUnit @Test case with custom aspect annotation

Spring beginner here. I am making two custom annotations @Satisfy and @Verify, meant to be used to track requirements in code. @Satisfy denotes where the requirement is implemented @Verify denotes ...
Kurt Andersen's user avatar
0 votes
1 answer
119 views

Spring Boot 3.4.6 validation not triggering for @Email and @NonNull on MongoDB @Document entity

I'm building a Spring Boot 3.4.6 application using MongoDB and encountering an issue where @NonNull and @Email annotations are not triggering validation errors/exceptions even though I am using @Valid ...
sathwikhbhat's user avatar
0 votes
1 answer
39 views

@SessionScoped not compiling with Kotlin interfaces in Quarkus

I am trying to develop an AI Agent using LangChain4J Quarkus plugin, in Kotlin. I have created this class: package prova.langchainkotlin.test import io.quarkiverse.langchain4j.RegisterAiService ...
Valerio Storch's user avatar
0 votes
1 answer
74 views

Annotation processor is not processing annotations in kotlin

I had written a couple annotation processors in the past, mainly for processing classes annotated with certain annotations and creating an object to easily manipulate those classes or perform certain ...
Neglected Sanity's user avatar
0 votes
0 answers
103 views

Annotation based code generation fails compilation before code is generated

I am writing a Java library in which I'm attempting to auto-generate some boilerplate code using annotations. The generated code is a large hierarchy of sealed interfaces with lots of cyclic ...
Jamie Mullowney's user avatar
0 votes
1 answer
44 views

Inheritance with multiple constructors and type annotations [duplicate]

I'm trying to create classes that can be saved to a JSON file. The idea is to convert my object to a dataclass that stores only the important attributes. I'll then use something from json or ...
Quantasm's user avatar
0 votes
0 answers
25 views

Are `org.reflections.Reflections` not working on Android? [duplicate]

I wrote myself a small library that scans one or more packages for classes that are annotated using a specific annotation and then does some fancy stuff on these classes. Now I just wanted to use that ...
mmo's user avatar
  • 4,386
4 votes
2 answers
254 views

Room KMP: How to use experimental types in models?

I am trying to use Room for Kotlin Multiplatform (version 2.7.1) with ksp version 2.1.21-2.0.1. How can I use the experimental type kotlin.time.Instant in my models? The annotation processor ...
Gamer2015's user avatar
  • 341
-1 votes
1 answer
47 views

Parenthesis and scrollbar annotations

In my Visual Studio Code 1.100.0, I am having issues with parenthesis annotations and the scrollbar annotations with dart. Starting point of my widget: Ending point of my widget: This is very ...
DevQt's user avatar
  • 1,920
3 votes
1 answer
49 views

Unable to retrieve the annotation at the left of the square brackets of an array

I am unable to retrieve the annotation at the left of the square brackets of an array: public static @MyNullable1 String @MyNullable2[] array = null; @Test public void test() throws Exception { ...
FredSuvn's user avatar
  • 2,181
1 vote
1 answer
68 views

Scala 2 annotation macro weirdness

I have these three macros all defined in the same file (and with the same exact definition): class client(val port: Int = 9000) extends StaticAnnotation { def macroTransform(annottees: Any*): Any = ...
Dima's user avatar
  • 40.6k
0 votes
0 answers
45 views

Vsphere 8.0.3 Annotation

Is there a way in Vsphere Version 8 to get the Annotation from a vm with using the rest API? "https:///api/vcenter/vm/vm-64" doesn't work - no annotation Is Powercli the only way for this?
Mickey45's user avatar
0 votes
1 answer
114 views

Java Reflections and Meta Annotation Scanning

I am working on a somewhat like spring DI framework, and I faced an issue scanning all classes annotated with a certain annotation. Here are the annotations: @Retention(RetentionPolicy.RUNTIME) @...
Standing_Ash's user avatar
0 votes
0 answers
66 views

What is an annotation in Spring Boot [duplicate]

I have been trying to find a simple definition of an annotation is Spring Boot, specifically: a) What it does b) When / how you would use it While I am using annotations in my code such as @Repository ...
Walker Farrow's user avatar
2 votes
1 answer
72 views

Backward Compatible Mongo fields using C# and .NET

I have the following class which represents an entity in a MongoDB database: public class Profile { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } = null!; ...
chris's user avatar
  • 2,882
1 vote
1 answer
49 views

AspectJ staticInitialization changes the method context on the code in the clinit when doing @Around

This question is a follow up to the question here AspectJ @around a static initializer I accepted that answer because it did apply the aspect to the code, but i hadn't actually run it yet to see there ...
MeBigFatGuy's user avatar
  • 28.7k
0 votes
1 answer
65 views

AspectJ @around a static initializer

I'm attempting to use a point cut of @Around("staticinitialization(*)") but when applying i get this error: [iajc] [error 4]: error at /home/dave/dev/coyote/projects/aspects/debug_src/com/...
MeBigFatGuy's user avatar
  • 28.7k
0 votes
0 answers
19 views

Potato - text annotation tool

For those familiar with Potato, the text annotation tool, I would like to know if is there a possibility when you are doing span labeling, to select multiple labels for the same span. I checked the ...
Diana Duarte Salinas's user avatar
0 votes
1 answer
48 views

Quarkus - set annotation configs in application.yaml

Currently I have annotation properties in my application.properties, such as: my.project.MyClass/myFunction/Retry/maxRetries=3 my.project.MyClass/myFunction/Retry/delay=400 Is it possible to put ...
MiketheCalamity's user avatar
0 votes
0 answers
81 views

Unable to Export CVAT Annotations to S3 or Download Locally

I am running CVAT on a VM and attempting to export annotations to (lakefs, hosted by my organization) S3 cloud storage. However, I encounter an AccessDenied error, despite being able to upload to the ...
Raighley's user avatar
1 vote
1 answer
89 views

Observability with java spring boot actuator and micrometer annotation @Counted is ignored while @Timed works fine

Following documents and examples I try to implement @Counted and @Timed annotation based observability, basing on spring boot actuator, micrometer. There are no build or run errors. a method in the ...
Gil Shapir's user avatar
3 votes
0 answers
89 views

Dynamically added annotation is not visible to Kotlin reflection

I am working with a Java agent that is adding an annotation dynamically to a class file. When this class file is a Kotlin class, and if it is investigated by Kotlin reflection, the annotation does not ...
Rafael Winterhalter's user avatar
0 votes
0 answers
19 views

Scichart VerticalLineAnnotation.Visibility = Visibility.Hidden not taking effect

I'm having a problem with VerticalLineAnnotation.Visibility = Visibility.Hidden; not taking effect in my development, checking the Scichart forums I know the answer, Visibility is used internally but ...
李晓航's user avatar
0 votes
1 answer
605 views

I encountered a Swagger error when using from __future__ import annotations with Pydantic, FastAPI, and SlowAPI in my project

I encountered the following error while working with FastAPI and Pydantic and SlowApi: pydantic.errors.PydanticUserError: `TypeAdapter[typing.Annotated[ForwardRef('ResponseModel'), FieldInfo(...
Mohanad Gadallah's user avatar
2 votes
1 answer
196 views

Annotate columns, with metadata in SQL

I want to annotate my DDL commands with metadata for mutiple data stores' SQL like PostgreSQL, SnowflakeSQL... ex: CREATE TABLE dummy (col_name type ... `*metadata_annotation*`, ...); And I also want ...
Gautham S's user avatar
0 votes
1 answer
62 views

How do I get the evaluated value from a StaticAnnotation's member?

So I have an annotation that looks like this: class FakeAnnotation(val strings: String*) extends StaticAnnotation val someVar = "Test" @FakeAnnotation(someVar) class TestClass I can't see ...
Tanin's user avatar
  • 1,973
0 votes
3 answers
94 views

Using annotation processors to check for other annotations

I have an abstract class A with a function funcA, implemented. I want to enforce that the classes that extend class A override funcA to add an annotation @SampleAnnotation. To achieve this, I tried ...
BBloggsbott's user avatar
1 vote
0 answers
99 views

Annotations on Adobe PDF Embed API not working on some tablets

I'm trying to get annotations to work on a PDF Embed API implementation. The documentation says that in FULL_WINDOW mode it should work on Chrome and Safari on Tablets. However it does not seem to ...
WindyJMusic's user avatar
1 vote
0 answers
24 views

@ObjectTypeConverter - Conflicting annotations with the same name

I have an @ObjectTypeConverter defined for one of my models like so: @Column(name = "ACTIVE", nullable = false) @ObjectTypeConverter(name = "shortToBooleanConverter", dataType =...
Alisa's user avatar
  • 31
0 votes
0 answers
32 views

how do I get annotation instances that are declared by AnnotationTarget.EXPRESSION?

I am trying to read the annotations of a value that I pass to a function. I have an annotation defined as: @Retention(AnnotationRetention.SOURCE) @Target(AnnotationTarget.EXPRESSION) annotation class ...
exbuddha's user avatar
  • 633
-1 votes
1 answer
69 views

How do i check a custom annotation?

today i created a hello world app. It's not a simple hello world app. It uses classes, custom exceptions, threads, generics, custom annotation and more. The problem here is that the AnnotationApplyer ...
iasonas's user avatar
  • 11
1 vote
1 answer
45 views

MyBatis annotation function where IN list of uuids

I have a list of UUIDS of users where I need to decrease a number of gold by a given amount. MyBatis function: @Update( """ UPDATE users SET gold = gold - #{amount} <...
Vetalll's user avatar
  • 3,743
1 vote
0 answers
83 views

Roboflow Annotation for YOLO

We are using YOLO for object detection in satellite images to detect greenhouses. I'm annotating images through Roboflow. I've downloaded satellite images with different zoom levels. (zoom level means ...
Akila premarathna's user avatar
0 votes
0 answers
25 views

Is there a way to validate value passed to annotation applied to concrete class implementations during annotation processing phase

I have an abstract class that consumers of my library are expected to implement: public abstract class StatusIndicator { protected StatusIndicator(Class<? extends StatusIndicator> thisClass) { ...
bobbyrne01's user avatar
  • 6,833
0 votes
1 answer
37 views

How to access comment annotation of object properties in owlready2

I'm using the python owlready2. In working with object properties, I was successful to get most of the standard annotation via dot attributes, like label, isDefinedBy, deprecated, iri, is_a, domain ...
Xin Feng's user avatar
1 vote
0 answers
100 views

Overriding .class's method body - like lombok

I'm on java 17, and I need to create an annotation processor which (like lombok) will modify the existing methods. The goal is annotation named @LogThis The will replace the method body with a log and ...
Aviv Assayag's user avatar
0 votes
0 answers
10 views

invoke logic from custom annotation on Spring Service

i'am trying to use custom annotation, which validation logic with reflection should be invoked automaticaly import jakarta.validation.Constraint; import jakarta.validation.Payload; import java.lang....
Roma Kap's user avatar
  • 646
-1 votes
1 answer
116 views

How to do retries in Kotlin, with timeout durations and maximum retry durations defined by arguments?

The codebase I'm working with already has a way of defining retry limits through annotations, e.g. @Retry( retryInterval = 60 ) fun doSomething(args: ...) However the retry parameters need to be ...
Kevin2566's user avatar
  • 451
0 votes
0 answers
25 views

MKAnnoation View issue in OSX MapKit

can you please help me understand the issue with AnnotationView in MapKit, As shown in the picture, I wan to set up a custom annotation with left and right calloutView, one in white color and the ...
Abdellah Ichiba's user avatar
0 votes
1 answer
38 views

How do I pass information to TestNG IAnnotationTrasformer?

I just discovered that the implementation of listener with IAnnotationTransformer annotation is executed as soon as the tests are launched even before the very first test is executed. Background: I ...
S P's user avatar
  • 69
5 votes
1 answer
6k views

How to properly deal with [import-untyped] in mypy?

I entered the command: $ mypy mypycode.py Then I run the following code in mypycode.py: from mypyc.build import mypycify from setuptools import setup from timeit import timeit import math setup( ...
Mr. W's user avatar
  • 275
1 vote
0 answers
59 views

Spring doesnt subscribe to Mono in Scheduled automatically when used cron

When i use cron like this: @Scheduled(cron = "0 0/5 16-19 * * *") spring does not subscirbe to Mono returned from method autimatically, and i need to do that manually. When i use @Scheduled ...
Denys Garbuz's user avatar

1
2 3 4 5
257