Ticket #523 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Improve Jar2Lib to proxy a set of core Java classes

Reported by: hinerm Owned by: hinerm
Priority: major Milestone: biweekly-2011: Apr-25 to May-06
Component: Jar2Lib Version:
Severity: serious Keywords: jar2lib jace
Cc: Blocked By:
Blocking:

Description

Currently it's not entirely clear how Jace chooses which core Java classes to proxy. This is becoming an issue as, for example, java.lang.Class isn't proxied even when a class that is proxied uses it. This logic may have been revised in a more recent version of Jace than is currently being used in Jar2Lib, but for now the following workaround is desired:

Allow Jar2Lib to accept a "core class" file via argument, in the same style it currently accepts header and conflicts files. This file should contain the names of any core java/ classes for which a proxy must be ensured to exist.

Jar2Lib will create include statements for all of the specified core classes in a new "java.h" file, which can be treated in the same manner as the current jace.h header.

Finally, jace-header.vm should be modified to ensure all proxied classes include java.h.

Change History

comment:1 Changed 8 years ago by hinerm

  • Status changed from new to closed
  • Resolution set to fixed

This feature was implemented in revision 7707 through a "-core [core_file]" argument. The core_file should contain one java class per line in the format: java.lang.class

Class names are converted to #include statements in java.h

Note: See TracTickets for help on using tickets.