Each version of JDK brings new classes and new methods in existing class.
In order for J2CS to support those changes without duplicating mapping file
i suggest to add a parameter in the mapping for packages, classes, methods,
fields .. that indicates the version of the JDK the new element has been
introduced. The J2CS have then to compare this parameter with the version
of the JDK of the project (JavaCore.COMPILER_COMPLIANCE)
This allows to translate projects that do not compile with the last JDK and
the maintenance of the mapping files will be easier (than duplicating the
mapping files for each JDK).
For example the method "getCanonicalName" has been introduced in the JDK1.5
and it should be noted as this :
method getCanonicalName() { property_get = FullName; since_jdk=1.5}
Alexandre FAU
None
None
Public
| Field | Old Value | Date | By |
|---|---|---|---|
| assigned_to | nobody | 2009-11-25 10:47 | alexandrefau |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use