Skip to content

Commit

Permalink
Remove attributes which appear to be incompatible with MSVC.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 570141902
  • Loading branch information
jwhpryor authored and copybara-github committed Oct 2, 2023
1 parent 70c6d5e commit 06d78d9
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions implementation/class_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<SupportedClasses_...> 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<SupportedClasses_...> 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_) {}

Expand Down

0 comments on commit 06d78d9

Please sign in to comment.