RFR [XS] : 8226943: compile error in libfollowref003.cpp with XCode 10.2 on macosx

Baesken, Matthias matthias.baesken at sap.com
Fri Jun 28 11:43:07 UTC 2019


Hello please review this  small fix for a compile issue  on OSX .
Today I  compiled   jdk/jdk   on a machine  with   XCode 10.2  . It worked pretty well .
However this small issue showed 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]


And here XCode 10 is correct ,    JVMTI_REFERENCE_ARRAY_ELEMENT   is from a different  enumeration type  and should be replaced  with the value  from the correct  enumeration type   .

Bug / webrev :

https://bugs.openjdk.java.net/browse/JDK-8226943

http://cr.openjdk.java.net/~mbaesken/webrevs/8226943.0/


Thanks, Matthias




More information about the build-dev mailing list