12,799 questions
1
vote
1
answer
43
views
Self-contained java annotation-processing with gradle
I am reading into java compile-time annotation-processing.
I can easily process annotations manually on the commandline, using
javac -d . MyAnnotation.java
javac -d . MyAnnotationProcessor.java
javac -...
0
votes
0
answers
56
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 ...
0
votes
1
answer
136
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 ...
2
votes
0
answers
110
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:
...
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 ...
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 ...
-3
votes
1
answer
120
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 ...
0
votes
0
answers
121
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 ...
1
vote
1
answer
51
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 ...
0
votes
1
answer
127
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 ...
0
votes
1
answer
43
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
...
0
votes
1
answer
76
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 ...
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 ...
0
votes
1
answer
49
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 ...
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 ...