From 06d78d9b37a5053000627c0ea19067905c177ce8 Mon Sep 17 00:00:00 2001 From: Jamieson Pryor Date: Mon, 2 Oct 2023 12:24:21 -0700 Subject: [PATCH] Remove attributes which appear to be incompatible with MSVC. PiperOrigin-RevId: 570141902 --- implementation/class_loader.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/implementation/class_loader.h b/implementation/class_loader.h index dbea68c9..82c98c57 100644 --- a/implementation/class_loader.h +++ b/implementation/class_loader.h @@ -54,27 +54,10 @@ class ClassLoader : public Object { explicit constexpr ClassLoader(const char* class_loader_name) : Object(class_loader_name) {} - // Default classloader (no name needed). explicit constexpr ClassLoader( ParentLoader_ parent_loader, SupportedClassSet supported_class_set) - __attribute__(( - enable_if(parent_loader == kDefaultClassLoader, - "You must provide a name for classloaders (except " - "kNullClassLoader and kDefaultClassLoader)"))) - : Object("__JNI_BIND_DEFAULT_CLASS_LOADER__"), - parent_loader_(parent_loader), - supported_classes_(supported_class_set.supported_classes_) {} - - // Null classloader (no name needed). - explicit constexpr ClassLoader( - ParentLoader_ parent_loader, - SupportedClassSet supported_class_set) - __attribute__(( - enable_if(parent_loader == kNullClassLoader, - "You must provide a name for classloaders (except " - "kNullClassLoader and kDefaultClassLoader)"))) - : Object("__JNI_BIND_NULL_CLASS_LOADER__"), + : Object("__JNI_NO_NAME_GIVEN__"), parent_loader_(parent_loader), supported_classes_(supported_class_set.supported_classes_) {}