Adobe ColdFusion 8

Using the Code Compatibility Analyzer

The Code Compatibility Analyzer has two purposes:

  • It can validate your application's CFML syntax. To do so, the analyzer runs the ColdFusion compiler on your pages, but does not execute the compiled code. It reports errors that the compiler encounters.
  • It can identify places where ColdFusion might behave differently than previous versions. The analyzer identifies the following kinds of features:
    • No longer supported: Their use results in errors. For example, ColdFusion now generates an error if you use the cflog tag with the thread="Yes" attribute.
    • Deprecated: They are still available, but their use is not recommended and the they might not be available in future releases. Deprecated features might also behave differently now than in previous releases. For example, the cfservlet tag is deprecated.
    • Modified behavior: They might behave differently than in previous versions. For example, the StructKeyList function no longer lists the structure key names in alphabetical order.

    The analyzer provides information about the incompatibility and its severity, and suggests a remedy where one is required.

You can run the Code Compatibility Analyzer from the ColdFusion Administrator. Select Code Analyzer from the list of Debugging & Logging pages.

Note: The CFML analyzer does not execute the pages that it checks. Therefore, it cannot detect invalid attribute combinations if the attribute values are provided dynamically at runtime.

For more information on using the Code Compatibility Analyzer, see Migrating ColdFusion 5 Applications.