Compiling a cls USING itself

altair

Member
Hi,

I have an issue felated to compilation, classes and USING keyword / packages.

I'm trying to compile a class located in a sub-directory.
This class contains a "USING" phrase referencing to itself :

Code:
/*testClasss.cls*/

USING testCompileUsing.Classes.testClass.


CLASS testClass :

END CLASS.

If i open this cls file in a Progress Editor and use Check Syntax, it is Ok ("Syntax is correct.")

I've put the path of the file (C:\testCompileUsing\Classes\testClass.cls) to this file in my PROPATH. It is visible by the PROPATH (a SEARCH on file base name returns the correct complete path : "C:\testCompileUsing\Classes\testClass.cls".
But when I am trying to compile it I get error :

Could not find class or interface testCompileUsing.Classes.testClass. (12886)


Here is the code I use to compile the class :
Code:
/*launcher_testCompileUsing.p*/

PROPATH = "".

PROPATH = "C:\testCompileUsing\Classes\".

MESSAGE REPLACE(PROPATH, ',', CHR(10)) SKIP(2)
        "SEARCH('testClass.cls')='" + SEARCH('testClass.cls') + "'"
VIEW-AS ALERT-BOX.

COMPILE C:\testCompileUsing\Classes\testClass.cls SAVE.


Any idea to achieve this (compiling a class USING itself) ?

Thanks in advance.
 
Last edited:

tamhas

ProgressTalk.com Sponsor
Why are you trying to do this? There is no point in USING pointing to self.

Also not sure what you are trying to accomplish with the compile code.
 

altair

Member
Hi,

The code of the cls USING itself is coming from Progress :
OpenEdge.Net.pl, URI.cls
I was trying to compile the sources code of the OpenEdge.Net library of OpenEdge 11.7 under 11.5 (I need to use OpenEdge.Net under 11.5 but there are bugs fixed in 11.7 but can not migrate to 11.7, explanation here : OpenEdge.Net.pl v11.5.1 Error 'X-NODEREF or X-DOCUMENT LOAD got an error: FATAL ERROR: file 'MEMPTR' ).

But I just see that there are also huge use of features unsupported features under 11.5 (use of enums, single line comments etc).

So I'll give this up and will have look for a replacement to OpenEdge.Net.pl... :confused: :/
 

Cringer

ProgressTalk.com Moderator
Staff member
Something tells me upgrading to Progress 11.7 will be a much easier route to happiness. What's the block?
 
Top