grmartin / stab-language

Automatically exported from code.google.com/p/stab-language
Apache License 2.0
0 stars 0 forks source link

Error accessing property of generic type #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The following code:

[StaticClass]
    public class Main {

        public static void main( String[] args){

            Foo<Integer>  foo = new Foo<Integer> ();
            foo.Hello = 9;

            System.out.println(foo.Hello);
        }
    }

    class Foo<T>
    {
        public T Hello;
    }

returns the runtime error:
Exception in thread "main" java.lang.VerifyError: (class: pt/test/Main, method: 
main signature: ([Ljava/lang/String;)V)
Expecting to find object/array on stack
Could not find the main class: pt.test.Main.  Program will exit.

Original issue reported on code.google.com by ice.ta...@gmail.com on 10 Jul 2010 at 5:29

GoogleCodeExporter commented 8 years ago
The bug is fixed and now it works.

Original comment by stab.hac...@gmail.com on 27 Sep 2010 at 10:05