Comments (1)
In retrospective this is is not possible with agents, as the VerificationPool class has to be in recompiled with every newly loaded class that has a HoldsAnnotation.
Instead the verification instances are added as static members of the class that has the annotation.
Example of the recompile sequence
Before:
@Holds(ExampleVerifier::class)
data class Example(val example: String)
After:
class Example{
private static exampleverifier = new ExampleVerifier();
private String example;
Example(String example){
this.example = example
Example.exampleverifier.verify(this)
}
// More down here
}
from annotations-source-code-modification.
Related Issues (15)
- Compiler Plugin - Gradle Plugin HOT 1
- Java Agent - General Infrastructure
- Java Agent - Class Annotations
- Java Agent - Field Annotations
- Java Agent - Param Annotations
- Java Agent - Local Variable Annotations
- Compiler Plugin - General Infrastructure HOT 1
- Compiler Plugin - Kotlin Plugin Infrastructure HOT 1
- Compiler Plugin - Class Builder HOT 1
- Compiler Plugin - Create verification Pool
- Compiler Plugin - ByteCode for ClassAnnotations
- Compiler Pluging - ByteCode for Field Annotations
- Compiler Plugin - ByteCode for Param Annotations
- Compiler Plugin - ByteCode for Local Variable Annotations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from annotations-source-code-modification.