#380 attrbute directive: minor glitch in reporting error line

3.2.0
closed
Rick McGuire
5
2012-08-14
2007-08-06
No

If causing duplicate attribute directives, the pointed to error line is wrong.

E.g. the code

----------- cut here -----------
::attribute aha / line # 1 /
::attribute aha get / line # 2 /
/ line # 3 /
----------- cut here -----------

causes the following error message:

----------- cut here -----------
F:\test\ooRexx3.2.0\directives>testAttr2.rex
Error 99 running F:\test\ooRexx3.2.0\directives\testAttr2.rex line 4: Translation error
Error 99.931: Duplicate ::ATTRIBUTE directive instruction
----------- cut here -----------

The line number is # 4 instead of # 2.

================================================

Another example:

----------- cut here -----------
::attribute aha / line # 1 /
::attribute aha set / line # 2 /
/ line # 3 /
/ line # 4 /
/ line # 5 /
::method blob / line # 6 /
----------- cut here -----------

causes the following error message:

----------- cut here -----------
F:\test\ooRexx3.2.0\directives>testAttr3.rex
6 - ::method blob / line # 6 /
Error 99 running F:\test\ooRexx3.2.0\directives\testAttr3.rex line 6: Translation error
Error 99.931: Duplicate ::ATTRIBUTE directive instruction
----------- cut here -----------

The line number is # 6 instead of # 2.

Discussion

  • Rick McGuire
    Rick McGuire
    2007-08-06

    Logged In: YES
    user_id=1125291
    Originator: NO

    Committed revision 656.

     


Anonymous


Cancel   Add attachments