Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8226943

compile error in libfollowref003.cpp with XCode 10.2 on macosx

XMLWordPrintable

    • b28
    • x86
    • os_x

        When building jdk/jdk with XCode 10.2 on macosx , the following error shows up :

        In file included from /open_jdk/jdk_just_clone/jdk/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref003/libfollowref003.cpp:33:
        /open_jdk/jdk_just_clone/jdk/test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/FollowReferences/followref003/followref003.cpp:813:14: error:
        comparison of two values with different enumeration types in switch statement ('jvmtiHeapReferenceKind' and 'jvmtiObjectReferenceKind') [-Werror,-Wenum-compare-switch]

        Reason is that an element (JVMTI_REFERENCE_ARRAY_ELEMENT) from the wrong enumeration is used in a switch statement.

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: