Failure to Corss-Compile When Class Files Exist

Bug #879293 reported by Jesper Öqvist
6
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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.