If I add the unoil.jar file to the set of jars to be included in an
Android app, I get this error message when the app build process is
converting the Java bytecode into Dalvik executable (.dex) format:
[dx] UNEXPECTED TOP-LEVEL EXCEPTION:
[dx] com.android.dx.util.ExceptionWithContext: bogus byte value: 128
[dx] at
com.android.dx.util.ExceptionWithContext.withContext(ExceptionWithContext.java:46)
[dx] at
com.android.dx.dex.cf.CfTranslator.processFields(CfTranslator.java:176)
[...]
[dx] Caused by: java.lang.IllegalArgumentException: bogus byte value: 128
[dx] at com.android.dx.rop.cst.CstByte.make(CstByte.java:52)
[dx] at
com.android.dx.dex.cf.CfTranslator.coerceConstant(CfTranslator.java:201)
[dx] at
com.android.dx.dex.cf.CfTranslator.processFields(CfTranslator.java:160)
[dx] ... 14 more
[dx] ...while processing ACTION_DEFAULT B
[dx] ...while processing com/sun/star/datatransfer/dnd/DNDConstants.class
Looking in offapi/com/sun/star/datatransfer/dnd/DNDConstants.idl , I see:
const byte ACTION_DEFAULT = 0x80;
Now, "byte" is a *signed* one-byte integer in Java. My trusty old
"Java in a Nutshell (4th Ed.)" claims that its legal values are -128
to 127. So should this ACTION_DEFAULT be defined as -128 instead?
Should javamaker, or whatsitcalled, be modified?
--tml
Context
- Another Dalvik oddity: "bogus byte value: 128" while processing DNDConstants.class · Tor Lillqvist
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.