freepascal / android-mock

Automatically exported from code.google.com/p/android-mock
0 stars 0 forks source link

Dx warnings on save/compile #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce

1. Reference AndroidMockGenerator.jar in an Android test project
2. Trigger a compilation (eg change a class in either the test project or the 
project under test)

When using AndroidMock, I get the following warnings in the console of Eclipse:

Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(javassist.ClassPool$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

Same message for:

javassist.CtClass$1
javassist.JarDirClassPath$1
javassist.SerialVersionUID$1
javassist.SerialVersionUID$2
javassist.SerialVersionUID$3
javassist.compiler.CodeGen$1
javassist.compiler.Javac$1
javassist.compiler.Javac$2
javassist.compiler.Javac$3
javassist.util.HotSwapper$1
javassist.util.proxy.ProxyFactory$1
javassist.util.proxy.SecurityActions$1
javassist.util.proxy.SecurityActions$2
javassist.util.proxy.SecurityActions$3
javassist.util.proxy.SecurityActions$4
javassist.util.proxy.SecurityActions$5
javassist.util.proxy.SecurityActions$6

Not sure if these warnings are important or not, but I have noticed a slow-down 
on compilation after including AndroidMock.  Not a deal-breaker, but may be 
easily solved?

Using:

AndroidMock 1.1.1
Android SDK r10
Android API 2.2

Original issue reported on code.google.com by jason.po...@gmail.com on 25 Apr 2011 at 6:30

GoogleCodeExporter commented 9 years ago
Cancel this issue.. it's clearly an issue with javassist.

Thanks

Original comment by jason.po...@gmail.com on 25 Apr 2011 at 7:08

GoogleCodeExporter commented 9 years ago
Hi,

Same here. 
Seems that javassist.jar is compiled inside AndroidMockGenerator.jar.
Also it seems that javassist.jar might be compiled with old java compiler (fe 
1.4).
Is that the right clue?

Cheers,
Marek

Original comment by slogt...@gmail.com on 5 May 2011 at 1:20