chdir / aidl2 Goto Github PK
View Code? Open in Web Editor NEWAnnotation processor, generating AIDL proxy/stub from Java interface definition
License: GNU General Public License v2.0
Annotation processor, generating AIDL proxy/stub from Java interface definition
License: GNU General Public License v2.0
This issue is supposed to serve as reference for all Jack bugs, that makes it incompatible with AIDL2 (those are actually bugs in Jack/ECJ, not in AIDL2, hence no need to create separate issues).
Types.asMemberOf
does not (really) work
Types.capture
and Types.contains
are placeholders, throwing UnsupportedOperationException. As consequence, types with wildcards won't work
Right now a method with N Serializable/Externalizable parameters will create and immediately throw away N ObjectXXXStream instances during each transaction. Instead it should be possible to reuse those.
It may sometimes be desirable to reuse those (especially when reasonable performance is expected).
In ideal world the following snippet would both compile and be inspectable from annotation processors:
void methodWithListParameter(List<@NonNull ? extends CustomParcelable>);
In reality ECJ does not appear to recognize type annotations as anything, but opaque source code tokens, and so does Javac.
There is a way to make introspection on type annotations "work" in Javac:
JavacTask
APITrees.getTypeMirror
API.Unfortunately, as of Javac 1.8.0_112 doing this requires significant effort (manually walking trees using tree API) and does not really work for any types, only for simple, non-composite types. The following TreePath will have no annotations:
List<@NonNull ? extends CustomParcelable>
You will have to cast it to parametrized tree and walk down to
@NonNull ? extends CustomParcelable
For which Trees.getTypeMirror
will finally produce correctly annotated WildcardType.
The alternative is to use non-documented Javac classes, which will likely become unavailable in Java 9. And that still does not guarantee correct outcome.
Javac have had a major injection of code to actually support type annotations. That code isn't included in Java 8 and will be available in Java 9 only.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.