I apologize for the lack of android-related content in this question, though
I assure you its as "Java-ish" as it gets.

I am currently playing around with Jasmin <http://jasmin.sourceforge.net>, a
java bytecode assembler. I wrote a simple program that creates an integer,
increases its value, then outputs it. The error I am getting; however, has
to do (I believe) with the jdk (jvm) itself. The error is:

Exception in thread "main" java.lang.VerifyError: (class: byteCode, method:
> main signature: ([Ljava/lang/String;)V) Expecting to find object/array on
> stack
>

Does anyone understand what this means? If my source helps, I will paste it
at the end of this email. I appreciate any guidance and attempts to figure
this out. I apologize again for android ambiguity.


*Source

*
>
> .source byteCode.j
> .class public byteCode
> .super java/lang/Object
>
> .method public <init>()V
>     aload_0
>     invokenonvirtual java/lang/Object/<init>()V
>     return
> .end method
>
> .method public static main([Ljava/lang/String;)V
>
>     .limit locals 4
>     .limit stack 3
>
>     getstatic java/lang/System/out Ljava/io/PrintStream;
>     astore_1
>
>     bipush 42
>     astore_2
>
>     aload_2
>     iinc 2 7
>     invokestatic java/lang/String/valueOf(I)Ljava/lang/String;
>     astore_3
>
>
>     aload_3
>     invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
>
>     return
>
> .end method


Thanks again!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to