Due to a bug in the class compiler, packages are not allowed to create classes that export both class and method operations; they can only export one of of operation or the other. The class compiler will be fixed in a future release of the SDK.