annotation-processing Questions
6
I have a simple annotation processor that needs to read a configuration file from the same project as the annotated classes. Example structure:
- myproject
- src
- main
- java
- my.package.So...
Sublett asked 29/9, 2016 at 13:50
10
Solved
I would like to do some annotation processing based on the example in the following link: http://www.zdnetasia.com/writing-and-processing-custom-annotations-part-3-39362483.htm.
However, I would l...
Twoup asked 10/3, 2012 at 22:39
3
Recently I upgraded my Android Studio to 0.8.2. Now, my android-annotations based project fails to build. It seems like annotation processing is disabled somehow. It seems the project compiler sett...
Farley asked 16/7, 2014 at 18:7
1
I have written an AnnotationProcessor which scans the code for a certain annotation and generates a Java Class out of it.
It basically does something like this:
private Multimap<String, Eleme...
Sungsungari asked 11/1, 2015 at 10:44
1
Solved
My Java annotation processor is generating an implementation of an interface, which has a MyInterface.foo() method returning CompletableFuture<String>. In my processor the ExecutableElement f...
Theotokos asked 1/10, 2023 at 17:22
4
Solved
I have migrated my build to use version catalogs.
I have removed the following from my build.gradle
plugins {
id 'kotlin-android'
id 'kotlin-kapt'
}
and
kapt "androidx.room:room-compiler:$roo...
Polynices asked 4/5, 2023 at 13:29
9
Solved
In the spirit of type safety associated with the CriteriaQuery JPA 2.0 also has an API to support Metamodel representation of entities.
Is anyone aware of a fully functional implementation of thi...
Bestiary asked 14/6, 2010 at 13:32
8
Solved
I have a Kotlin Gradle project. I added Lombok as a dependency and also registered it with kapt
compileOnly("org.projectlombok:lombok:$lombokVersion")
kapt("org.projectlombok:lombok:...
Angeliaangelic asked 3/9, 2017 at 20:6
4
On IntelliJ, I am getting a Spring Boot Configuration Annotation Processor not configured for having @ConfigurationProperties. Below is my class:
@Configuration
@ConfigurationProperties(prefix =...
Polybius asked 22/4, 2020 at 15:26
1
I have the following data class annotated with @MyAnnotation:
@MyAnnotation
data class MyDataClass(
val foo: Boolean = true,
val bar: Int = 123,
val buz: String? = "abc",
)
From the C...
Symphonia asked 19/7, 2022 at 14:30
4
Solved
I'm new to annotation processing and I'm trying to automating it with Maven. I've put this in my pom.xml:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
...
Brasher asked 12/8, 2016 at 20:49
1
I'm working on a code generator with annotation processing, and divided the logic into 2 steps:
Analyze the annotated element and create data model, and
Use the data model to generate code using J...
Dibasic asked 10/10, 2021 at 20:19
1
Solved
I want to convert my labels in yolo format to coco format
I have tried
https://github.com/Taeyoung96/Yolo-to-COCO-format-converter
And
Pylabel
They all have a bugs.
I want to train on detectron 2 b...
Lotti asked 7/4, 2022 at 21:54
1
Solved
I searched a lot regarding the configuration of QueryDSL with Gradle.
I would like to configure the annotation processor, to use a specific annotation @Generated on the generated classes.
But I co...
Danielledaniels asked 8/11, 2021 at 14:58
4
I am developing a small code generator using JDK 6's Annotation Processing API and am stuck trying to get the actual generic type of a field in the class. To be clearer, let's say I have a class li...
Kamerad asked 6/3, 2012 at 15:56
3
Solved
I'm trying to write an annotation processor to insert methods and fields on a class... and the documentation is so sparse. I'm not getting far and I don't know if I'm approaching it correctly.
The...
Monofilament asked 3/12, 2012 at 19:28
3
Solved
I have a problem with Lombok and JUnit.
I am using IntelliJ Idea, the latest one, with Lombok plugin installed and annotation processing enabled.
I have an entity class:
@Data
@Builder
@AllArgsC...
Diabolism asked 20/12, 2019 at 14:16
3
I'm currently down the path of trying to figure out how to decrease Android startup time. It hasn't been an issue with iOS but for Android, I'm seeing anywhere from 6-10 seconds. The goal is to be ...
Gneiss asked 6/12, 2017 at 17:6
7
I use annotation processing. Therefore I use the apt plugin. It generates new java sources in build/source/apt.
Here is my build.gradle:
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin...
Several asked 5/2, 2015 at 13:52
4
Solved
I want to do something using Annotation processing in eclipse jdt.
Eclipse jdtapt help tells me I should configure things on the java/compiler/annotation processing preferences page.
But on my in...
Categorical asked 24/3, 2012 at 10:25
3
Solved
I am trying to write a custom Anntoation processor.
The annotation processor will process each class file at compile time to check annotations,
But how am i able to get the class that it is current...
Nor asked 3/8, 2013 at 15:56
7
Solved
I'm experimenting with java annotation processors. I'm able to write integration tests using the "JavaCompiler" (in fact I'm using "hickory" at the moment). I can run the compile process and analys...
Observe asked 28/11, 2009 at 8:19
1
I've written an Java annotation processor by extending javax.annotation.processing.AbstractProcessor which is called in the Eclipse context and it works fine, except that I need more information ab...
Kirima asked 15/4, 2015 at 18:41
2
I use google/auto-value to create immutable value classes in a maven project.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:s...
Evocator asked 2/11, 2019 at 12:50
1
How can we provide an annotation processor with a Java 11 module?
To register the annotation provider we need the following module-info entry:
import javax.annotation.processing.Processor;
import...
Indiscretion asked 9/1, 2020 at 22:31
1 Next >
© 2022 - 2025 — McMap. All rights reserved.