Project

General

Profile

Bug #3320

Problems with comments

Added by Jaroslaw Haziak almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/11/2017
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version:

History

#1 Updated by Jaroslaw Haziak almost 7 years ago

The following comments make problems:

/*********************/
/* some comment 1    */
/* some comment 2    */
/* some comment 3    */
/*********************/
FUNCTION test-fun RETURNS LOG:
  RETURN TRUE.
END.

In such case the conversion log is filled with the following warnings:

WARNING: orphaned comment /* some comment 1    */ [COMMENT] @5:1 (12884901928)
WARNING: orphaned comment /* some comment 2    */ [COMMENT] @6:1 (12884901926)
WARNING: orphaned comment /* some comment 3    */ [COMMENT] @7:1 (12884901924)

and the translated Java code lacks the actual comments:

   /** ******************* */
   /**
    * *******************
    */
   public logical testFun()
   {
      return function("test-fun", logical.class, new Block((Body) () -> 
      {
         returnNormal(true);
      }));
   }

Also available in: Atom PDF