This document describes the PX1011 diagnostic.
| Code | Short Description | Type | Code Fix |
|---|---|---|---|
| PX1011 | Because multiple levels of inheritance are not supported for PXCacheExtension, the derived type can be marked as sealed. |
Warning (ISV Level 3: Informational) | Available |
Because C#-style inheritance from PXCacheExtension is not supported, you can mark PXCacheExtension-derived classes with the sealed modifier.
The code fix adds the sealed modifier to the PXCacheExtension-derived class.
public class ARInvoice : PXBqlTable, IBqlTable { }
public class ARInvoiceRUTROT : PXCacheExtension<ARInvoice> { } // The PX1011 warning is displayed for this line.public class ARInvoice : PXBqlTable, IBqlTable { }
public sealed class ARInvoiceRUTROT : PXCacheExtension<ARInvoice> { }