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

idltojava compiler gets confused about javadoc style comments in IDL

XMLWordPrintable

    • generic, x86, sparc
    • solaris_2.5.1, windows_nt

      When IDL contains javadoc style comments, idltojava gets confused and
      refuses to compile. C style and C++ style comments are OK.

      Test IDL file follows.


      /** Test.idl */
      module Test
      {
      interface a ;
      interface a
          {
              long GetAuthorizer( );
          };
      };


      biko:vkasa> idltojava -fserver Test.idl
      Test.idl:2: syntax error
      Test.idl:14: syntax error
      idltojava: aborted due to earlier errors

      If you remove the second star in the comment line, then this IDL
      compiles OK.

      Name: krT82822 Date: 10/08/99


      Javadoc style comment make idltojava compiler to find errors
      My IDL file contains some comment, in Javadoc style : /** ... */(I would use the idldoc utility to generate HTML documentation from my IDL file) the Java idl compiler send syntax errors on those comment.
      If I use /* ... */ style comment, idltojava work well, but my idldoc utility doesn't...
      The JDK that I use, is 1.2.1.
      idlj compiler work fine on my IDL file, but doesn't generate the same classes (*Operations instead of _*Operations) and I don't want to change all my code for this.

      ---------

      (see also 4176891)
      (Review ID: 96265)
      ======================================================================

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: