ReadyTalk / avian

[INACTIVE] Avian is a lightweight virtual machine and class library designed to provide a useful subset of Java's features, suitable for building self-contained applications.
https://readytalk.github.io/avian/
Other
1.22k stars 172 forks source link

add bootimage-test option to makefile #459

Closed dicej closed 8 years ago

dicej commented 8 years ago

This option specifies that the test classes should be AOT-compiled along with the class library, which allows us to test that everything works in AOT-compiled form as well as JIT-compiled form. This is primarily motivated by the need to test d906db6 (support for AOT-compilation of Java 8 lambda expressions).

Note that I had to tweak Misc because it tested something that couldn't be done in an AOT build without a lot of extra work, and SystemClassLoader.getPackage because it was returning null when the requested package could not be populated with JAR manifest metadata. Technically, we probably should return null for packages that don't exist at all (in the sense that no classes have been loaded from such a package), but tracking that kind of thing seems like more trouble than it's worth unless someone complains about it.

joshuawarner32 commented 8 years ago

Alas, the trace test failed before travis could get to bootimage-test=true