Failure to Corss-Compile When Class Files Exist

Bug #879293 reported by Jesper Öqvist on 2011-10-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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 and 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
Jesper Öqvist (jesper-oqvist) wrote :

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.

summary: - Failure to Corss-Compile Class Files
+ Failure to Corss-Compile When Class Files Exist
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 report contains Public information  Edit
Everyone can see this information.

Other bug subscribers