Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4407304

idlj: introduce package name translation, not only package prefixing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • other-libs
    • merlin
    • generic
    • generic
    • Not verified



        Name: krC82822 Date: 01/23/2001


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
        Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

        We propose the introduction of a new command line parameter to idlj:

          -pkg <src_package> <dest_package>

        which causes all occurrences of 'src_package' in the Java files generated
        by idlj to be translated to 'dest_package'.

        Currently idlj only supports package prefixing (option -pkgPrefix <t> <prefix>).

        We have a project where the IDL files were written with Ada in mind as the
        main target language, thus nested modules look like that:

            module DiagnosticsService {
                module PropulsionDiagnostics {
                     interface ....


        which results in the Java package

            DiagnosticsService.PropulsionDiagnostics.

        Since we have been using Visibroker 3.3, which supports arbitrary package
        name translation, we had the above package name translated to

            ch.paranor.diag.propulsion.

        With the package prefixing currently supported by idlj this is not possible.
        For various reasons, we would like to port our framework from Visibroker 3.3
        to the native Java2 ORB (exorbitant licence fees and less-than-average tech
        support by Inprise). Since we have customers using the framework, renaming
        the existing packages is out of question.
        (Review ID: 106690)
        ======================================================================

              kcavanauorcl Ken Cavanaugh (Inactive)
              kryansunw Kevin Ryan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: