Consultor Eletrônico



Kbase P112775: Error 12985 when compiling class with the complete path
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/12/2010
Status: Unverified

SYMPTOM(s):

Error 12985 when compiling class

Constructor name <constructor name> must match final component of class name '<package><class name> '. (12985)

The complete path of the class is specified when compiling.

The class contains a constructor

A package is specified with the class name.

The error does not occur when not specifying the complete path.

It works fine when there is no constructor in the class.

No error occurs when not specifying the package name with the class name

FACT(s) (Environment):

OpenEdge 10.1A

CAUSE:

Bug# OE00125527

FIX:

Upgrade to OpenEdge 10.1A01 or later

Compile without specifying the complete path of the class, and make sure the class file (.cls) can be found in the PROPATH.


For example:
CLASS Pro.clproabcd:
CONSTRUCTOR PROTECTED clproabcd():
END CONSTRUCTOR.
END CLASS.


COMPILE Pro\clproabcd.cls SAVE.