Failure to Corss-Compile When Class Files Exist
Bug #879293 reported by
Jesper Öqvist
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LJRT |
Fix Committed
|
Low
|
Jesper Öqvist |
Bug Description
J2C fails to cross-compile a Java program if the classes have been compiled to class files.
The bug can be reproduced with the "simple" test program. First cross compile the program as usual. Running the program should print the message "It works!". If the source files Simple.java and Other.java are first compiled with javac, then the program will print "null" after cross compiling.
Related branches
Changed in ljrt: | |
status: | New → Confirmed |
importance: | Undecided → Low |
description: | updated |
Changed in ljrt: | |
status: | Confirmed → Fix Committed |
milestone: | none → 1.0.1 |
assignee: | nobody → Jesper Öqvist (jesper-oqvist) |
To post a comment you must log in.
This is possibly not a bug. Cross compiling from class file -> C code would require all new code generation.
However, J2C should pick .java files first if they are available, rather than picking class files. If only class files are available for some dependency then an error should be printed.