Comments (2)
Thanks @timtebeek. I tried to do a minimal test with PR.
from rewrite.
Hi @JohannesRabauer ! Looks like you're running up against a limitation where AddOrUpdateAnnotationAttribute
can only update literal values for now.
Your case of adding an attribute that's a class had not yet been reported; It could likely be added by updating the recipe itself. Starting with a draft PR with a failing test case of what you'd like to see is a great way to get this started, if you're up for that.
from rewrite.
Related Issues (20)
- TabsAndIndents: continuationIndentSize fails by `!DOCTYPE` HOT 2
- `CatchClauseOnlyRethrows` should not remove empty catch if the exception then gets caught by another catch block
- The InMemoryDiffEntry defaults diffs with UTF-8 encoding when a file could be in another encoding e.g. ISO-8859
- LST SourceFile for file encoded as ISO-8859 produced with encoding set to UTF-8
- "Add Maven Parent" recipe HOT 3
- JSP parse errors logged to console during `mod build`
- No newline in import statements added by maybeAddImport / AddImportVisitor HOT 3
- org.openrewrite.java.RemoveObjectsIsNull fails on negated expressions HOT 5
- Json formatting/style doesn't seem to be respected when adding values/members
- Print equality issue with `<!-- -->` in JavaDoc HOT 4
- add clang-format style HOT 2
- Groovy Enum is throwing "Failed to parse" "UnsupportedOperationException: enum fields are not implemented." HOT 2
- Getting StringIndexOutOfBoundsException with Groovy class that has groovy transform. HOT 2
- java/ChangePackage does not update JPMS module-info.java HOT 2
- `maybeAddImport` adds import although all references are fully qualified HOT 1
- Maven settings with profiles fails to active other profiles from parent activeByDefault HOT 12
- ClassCastException in UpgradeDependencyVersion
- Migrate from `sources` to `resolve-sources` for the maven-dependency-plugin
- 🐛 Tests involving Map with unbounded wildcards throw LST error
- 🐛 Unbounded wildcard in `JavaTemplate` does not match array types HOT 1
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 rewrite.