Re: Unable to load java/lang/Reference at boostrap

Etienne Gagnon <[email protected]> Fri, 25 Mar 2005 14:34:20 -0500
Newsgroups gmane.comp.java.vm.sablevm.devel
Message-ID <[email protected]>
Probably it has some static initializer(s).  In bootstrap.m4.c:
...
      Initialization is done in a special way. Initialization checks
      that there is no <clinit> method.  This is a requirement SableVM
      imposes on classes internally created.

      Rationale: Initialization can possibly cause the execution of an
      arbitrary amount of bytecode in an unrestricted number of
      classes.  At bootstrapping time, though, SableVM is not yet ready
      to run arbitrary code.

      If you really need to use static initializers in such classes,
      simply put your static initializers in static inner classes;
      you'll achieve equivalent semantics while also complying with
      SableVM's "no <clinit>" requirement. *[::]/
...

Etienne

Manuel Ferland wrote:
> Im trying to load java/lang/Reference at bootstrap
> wihout success.
> ...

--
Etienne M. Gagnon, Ph.D.            http://www.info2.uqam.ca/~egagnon/
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/

_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel
signature.asc (application/pgp-signature, 256 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCRGe9jyrJi4rH84gRAh5YAJ9hmLWZlLqXZnelWysnOqRzDlLB+QCbBCwY
Lnfn5QidqZi4QLhu0c22zOo=
=zuvO
-----END PGP SIGNATURE-----