--- old/test/jdk/com/sun/tools/jextract/jclang-ffi/src/jdk/internal/clang/Type.java 2018-09-12 21:19:04.000000000 +0530 +++ new/test/jdk/com/sun/tools/jextract/jclang-ffi/src/jdk/internal/clang/Type.java 2018-09-12 21:19:00.000000000 +0530 @@ -101,4 +101,20 @@ public Cursor getDeclarationCursor() { return new Cursor(LibClang.lib.clang_getTypeDeclaration(type)); } + + @Override + public boolean equals(Object other) { + if (this == other) { + return true; + } + if (!(other instanceof Type)) { + return false; + } + return LibClang.lib.clang_equalTypes(type, ((Type)other).type) != 0; + } + + @Override + public int hashCode() { + return spelling().hashCode(); + } }