Ticket #353 (new defect)
Opened 4 months ago
fortress typecheck success causes subsequent fortress compile to silently generate no code
| Reported by: | jmaessen | Owned by: | dr2chase |
|---|---|---|---|
| Priority: | critical | Milestone: | |
| Component: | interpreter | Version: | |
| Keywords: | Cc: |
Description
Running fortress typecheck puts the cache into a state in which it believes that code has been generated. Thus the following:
ant -e cleanCache fortress typecheck ProjectFortress/compiler_tests/Compiled1.fss fortress link ProjectFortress/compiler_tests/Compiled1.fss fortress run Compiled1
Fails as follows:
Exception in thread "main" java.lang.NoClassDefFoundError: Compiled1 Caused by: java.lang.ClassNotFoundException: Compiled1 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:319) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402)
By contrast, eliminating the typecheck step succeeds:
ant -e cleanCache fortress link ProjectFortress/compiler_tests/Compiled1.fss fortress run Compiled1
Note: See
TracTickets for help on using
tickets.

