From c6ea7fd3591ab8c869e535602575e29e7d0eb0db Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Fri, 16 Mar 2018 23:25:25 +0000 Subject: [PATCH] HHH-12399 Re-introduce Environment#jvmHasTimestampBug as deprecated method --- .../src/main/java/org/hibernate/cfg/Environment.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java b/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java index 3a0574870b..ba9f2c5a4e 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/Environment.java @@ -238,6 +238,17 @@ public static void verifyProperties(Map configurationValues) { BYTECODE_PROVIDER_INSTANCE = buildBytecodeProvider( GLOBAL_PROPERTIES ); } + /** + * This will be removed soon; currently just returns false as no known JVM exibits this bug + * and is also able to run this version of Hibernate ORM. + * @deprecated removed as unneccessary + * @return false + */ + @Deprecated + public static boolean jvmHasTimestampBug() { + return false; + } + /** * Should we use streams to bind binary types to JDBC IN parameters? *