com.cedarsoft.maven.instrumentation-plugin's People
com.cedarsoft.maven.instrumentation-plugin's Issues
Add thread lock detector
There has some code been written somewhere.
Maybe add that code to this plugin?
Move Nullable instrumenter from anntotations to instrumentation-plugin
Try to reproduce "error: the symbol $assertionsDisabled conflicts with a compiler-synthesized symbol in"
2 Modules:
1 module contains the abstract base class
the second module contains the iplementation and an assert statement
--> compile error
Java 1.7.0_07
Maven 3.1.0
Avoid duplicated instrumentation
Somehow detect that the class has already been instrumented and skip it.
Add support for @GuardedBy
Somehow it should be possible to detect whether the lock is held.
List methods without any thread annotation
Only add ThreadValidator if there is the needed class in classpath
Exception when instrumenting inner classes
[ERROR] Failed to execute goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests (instrument-test-classes) on project ui: Execution instrument-test-classes of goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests failed: Should not happen. Failed to convert a valid compiled class into bytecode: by java.lang.IllegalAccessError: class de.avat.service.ui.testPages.TestMainPageDemo$MyTestMainPageLineModel cannot access its superinterface de.avat.service.ui.testPages.TestMainPageLineModel -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests (instrument-test-classes) on project ui: Execution instrument-test-classes of goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests failed: Should not happen. Failed to convert a valid compiled class into bytecode
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution instrument-test-classes of goal com.cedarsoft.maven:instrumentation-plugin:1.1:instrument-tests failed: Should not happen. Failed to convert a valid compiled class into bytecode
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.RuntimeException: Should not happen. Failed to convert a valid compiled class into bytecode
at com.cedarsoft.maven.instrumentation.plugin.util.ClassFile.transform(ClassFile.java:85)
at com.cedarsoft.maven.instrumentation.plugin.AbstractInstrumentationMojo.transformClass(AbstractInstrumentationMojo.java:116)
at com.cedarsoft.maven.instrumentation.plugin.AbstractInstrumentationMojo.performClassTransformation(AbstractInstrumentationMojo.java:108)
at com.cedarsoft.maven.instrumentation.plugin.AbstractInstrumentationMojo.execute(AbstractInstrumentationMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
... 20 more
Caused by: javassist.CannotCompileException: by java.lang.IllegalAccessError: class de.avat.service.ui.testPages.TestMainPageDemo$MyTestMainPageLineModel cannot access its superinterface de.avat.service.ui.testPages.TestMainPageLineModel
at javassist.ClassPool.toClass(ClassPool.java:1099)
at javassist.CtClass.toClass(CtClass.java:1265)
at com.cedarsoft.maven.instrumentation.plugin.util.ClassFile.doTransform(ClassFile.java:97)
at com.cedarsoft.maven.instrumentation.plugin.util.ClassFile.transform(ClassFile.java:79)
... 24 more
Caused by: java.lang.IllegalAccessError: class de.avat.service.ui.testPages.TestMainPageDemo$MyTestMainPageLineModel cannot access its superinterface de.avat.service.ui.testPages.TestMainPageLineModel
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at javassist.ClassPool.toClass2(ClassPool.java:1112)
at javassist.ClassPool.toClass(ClassPool.java:1093)
... 27 more
[ERROR]
VerifyError on multiple annotations?
If annotated with @UiThread and one parameter is annotated with @nonnull, it seems that a VerifyError: "Expecting a stackmap frame at branch target" is thrown.
Maybe caused by multiple instrumentations?
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.