<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> 
        <base href="https://hibernate.atlassian.net"> 
        <title>Message Title</title> 
    </head> 
    <body class="jira" style="color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.429"> 
        <table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0" bgcolor="#f5f5f5"> 
            <!-- header here --> 
            <tbody>
                <tr> 
                    <td id="header-pattern-container" style="padding: 0; border-collapse: collapse; padding: 10px 20px"> 
                        <table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                            <tbody>
                                <tr> 
                                    <td id="header-avatar-image-container" valign="top" style="padding: 0; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px" width="32"> <img id="header-avatar-image" class="image_fix" src="cid:jira-generated-image-avatar-a57cde0c-c4cd-4202-9e0b-ba3afd78d1aa" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top"> </td> 
                                    <td id="header-text-container" valign="middle" style="padding: 0; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> <a class="user-hover" rel="mih_vlad" id="email_mih_vlad" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=mih_vlad" style="color:#6c797f;; color: #3b73af; text-decoration: none">Vlad Mihalcea</a> <strong>commented</strong> on <a href="https://hibernate.atlassian.net/browse/HHH-10960" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-static-remove_feature-6e5ff934-3b86-450d-8d96-19bee02c4c61" height="16" width="16" border="0" align="absmiddle" alt="Deprecation"> HHH-10960</a> </td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
                <tr> 
                    <td id="email-content-container" style="padding: 0; border-collapse: collapse; padding: 0 20px"> 
                        <table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; border-spacing: 0; border-collapse: separate"> 
                            <tbody>
                                <tr> 
                                    <!-- there needs to be content in the cell for it to render in some clients --> 
                                    <td class="email-content-rounded-top mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 15px; background-color: #ffffff; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; height: 10px; line-height: 10px; padding: 0 15px 0 16px; mso-line-height-rule: exactly" height="10" bgcolor="#ffffff">&nbsp;</td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff"> 
                                        <table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                            <tbody>
                                                <tr> 
                                                    <td style="vertical-align: top;; padding: 0; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" class="page-title-pattern-header-container"> <span class="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-10960" style="color: #3b73af; text-decoration: none">Re: Clarification of org.hibernate.query.Query methods</a> </span> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td id="text-paragraph-pattern-top" class="email-content-main mobile-expand  comment-top-pattern" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; border-bottom: none; padding-bottom: 0" bgcolor="#ffffff"> 
                                        <table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px"> 
                                            <tbody>
                                                <tr> 
                                                    <td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0; border-collapse: collapse; padding: 0 0 10px"> <p style="margin: 10px 0 0; margin-top: 0">I added all your examples to a test method and <a href="https://github.com/hibernate/hibernate-orm/commit/b90047f55db8fe3f7785df2b2f31626bb906d3f7" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">committed it as well</a>.</p> <p style="margin: 10px 0 0">Then, I activated <tt>-Xlint</tt> in Gradle:</p> 
                                                        <div class="code panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
                                                            <div class="codeContent panelContent" style="padding: 9px 12px"> 
                                                                <pre class="code-java" style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal">
compileTestJava {
        options.compilerArgs += [
                <span class="code-quote" style="color: #009100">"-Xlint"</span>
        ]
}
</pre> 
                                                            </div>
                                                        </div> <p style="margin: 10px 0 0">I run the test in question:</p> 
                                                        <div class="preformatted panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
                                                            <div class="preformattedContent panelContent" style="padding: 9px 12px"> 
                                                                <pre style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal; white-space: pre; word-break: normal; word-wrap: break-word; word-break: break-all; white-space: pre-wrap">&gt; gradle clean test --tests "org.hibernate.jpa.test.criteria.CriteriaCompilingTest.testDeprecation
</pre> 
                                                            </div>
                                                        </div> <p style="margin: 10px 0 0">And this is the actual output:</p> 
                                                        <div class="preformatted panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
                                                            <div class="preformattedContent panelContent" style="padding: 9px 12px"> 
                                                                <pre style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal; white-space: pre; word-break: normal; word-wrap: break-word; word-break: break-all; white-space: pre-wrap">d:\Vlad\Work\GitHub\hibernate-orm\hibernate-core&gt;gradle clean test --tests "org.hibernate.jpa.test.criteria.CriteriaCompilingTest.testDeprecation"
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE
Maven settings.xml file did not exist : C:\Users\Vlad\.m2\settings.xml
Configuration(s) specified but the install task does not exist in project :release.
:hibernate-core:clean
:hibernate-core:generateGrammarSource
:hibernate-core:xjc
:hibernate-core:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:hibernate-core:processResources
:hibernate-core:classes
:hibernate-core:jar
:hibernate-core:generateTestGrammarSource UP-TO-DATE
:hibernate-jpamodelgen:jaxb UP-TO-DATE
:hibernate-jpamodelgen:xjc SKIPPED
:hibernate-jpamodelgen:compileJava UP-TO-DATE
:hibernate-jpamodelgen:processResources UP-TO-DATE
:hibernate-jpamodelgen:classes UP-TO-DATE
:hibernate-jpamodelgen:jar UP-TO-DATE
:hibernate-testing:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:hibernate-testing:processResources UP-TO-DATE
:hibernate-testing:classes
:hibernate-testing:jar UP-TO-DATE
:hibernate-core:compileTestJava
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\cache\spi\NaturalIdCacheKeyTest.java:15: warning: [deprecation] OldNaturalIdCacheKey in org.hibernate.cache.internal has been deprecated
import org.hibernate.cache.internal.OldNaturalIdCacheKey;
                                   ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\cache\spi\NaturalIdCacheKeyTest.java:24: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertEquals;
                             ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\dialect\resolver\DialectFactoryTest.java:23: warning: [deprecation] DerbyDialect in org.hibernate.dialect has been deprecated
import org.hibernate.dialect.DerbyDialect;
                            ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\id\SequenceValueExtractor.java:17: warning: [deprecation] DerbyDialect in org.hibernate.dialect has been deprecated
import org.hibernate.dialect.DerbyDialect;
                            ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\EntityManagerFactoryUnwrapTest.java:19: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\EntityManagerTest.java:32: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\cacheable\cachemodes\SharedCacheModesTest.java:16: warning: [deprecation] HibernateEntityManager in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManager;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\callbacks\hbmxml\MappingClassMoreThanOnceTest.java:13: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\cascade\Student.java:16: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\cascade\Teacher.java:18: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\cascade\multicircle\MultiCircleJpaCascadeTest.java:19: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\criteria\basic\CastTest.java:17: warning: [deprecation] DerbyDialect in org.hibernate.dialect has been deprecated
import org.hibernate.dialect.DerbyDialect;
                            ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\criteria\basic\ExpressionsTest.java:21: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\criteria\idclass\IdClassPredicateTest.java:18: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\ejb3configuration\EntityManagerFactorySerializationTest.java:19: warning: [deprecation] HibernateEntityManager in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManager;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\ejb3configuration\EntityManagerSerializationTest.java:18: warning: [deprecation] HibernateEntityManager in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManager;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\enhancement\cases\AbstractExecutable.java:24: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\graphs\named\basic\AbstractNamedEntityGraphTest.java:15: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertNotNull;
                             ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\graphs\named\multiple\NamedEntityGraphsTest.java:19: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertNotNull;
                             ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\packaging\PackagedEntityManagerTest.java:21: warning: [deprecation] ConfigHelper in org.hibernate.internal.util has been deprecated
import org.hibernate.internal.util.ConfigHelper;
                                  ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\packaging\PackagedEntityManagerTest.java:23: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\persistenceunit\ExcludeUnlistedClassesTest.java:20: warning: [deprecation] ConfigHelper in org.hibernate.internal.util has been deprecated
import org.hibernate.internal.util.ConfigHelper;
                                  ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\procedure\DateTimeParameterTest.java:38: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\procedure\JpaTckUsageTest.java:27: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\query\CachedQueryTest.java:17: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\query\CachedQueryTest.java:19: warning: [deprecation] HibernateEntityManagerImplementor in org.hibernate.jpa.spi has been deprecated
import org.hibernate.jpa.spi.HibernateEntityManagerImplementor;
                            ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\query\QueryTest.java:40: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\query\QueryTest.java:42: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertNull;
                             ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\transaction\FlushAndTransactionTest.java:19: warning: [deprecation] HibernateEntityManagerFactory in org.hibernate.jpa has been deprecated
import org.hibernate.jpa.HibernateEntityManagerFactory;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\jpa\test\xml\XmlTest.java:19: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\AlternativeNamingStrategy.java:11: warning: [deprecation] NamingStrategy in org.hibernate.cfg has been deprecated
import org.hibernate.cfg.NamingStrategy;
                        ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\ConfigurationTest.java:14: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\Customer.java:23: warning: [deprecation] Sort in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Sort;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\Customer.java:24: warning: [deprecation] SortType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.SortType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\EntityTest.java:19: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\access\Bed.java:13: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\access\Furniture.java:15: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\access\Woody.java:12: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\access\Gardenshed.java:15: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\access\xml\Boy.java:15: warning: [deprecation] Entity in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Entity;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\any\AnyTest.java:11: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\backquotes\Bug.java:17: warning: [deprecation] Index in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Index;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\cascade\PersonPair.java:16: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\cascade\CodedPairSetHolder.java:22: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\cascade\multicircle\jpa\identity\MultiCircleJpaCascadeIdentityTest.java:9: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\cascade\multicircle\jpa\sequence\MultiCircleJpaCascadeSequenceTest.java:15: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\cascade\multicircle\nonjpa\identity\MultiCircleNonJpaCascadeIdentityTest.java:9: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\cascade\multicircle\nonjpa\sequence\MultiCircleNonJpaCascadeSequenceTest.java:15: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\cid\CompositeIdTest.java:17: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\collectionelement\DefaultNamingCollectionElementTest.java:15: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\collectionelement\Matrix.java:21: warning: [deprecation] Sort in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Sort;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\collectionelement\Matrix.java:22: warning: [deprecation] SortType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.SortType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\collectionelement\OrderByTest.java:19: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\collectionelement\embeddables\withcustomenumdef\TestBasicOps.java:9: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertEquals;
                             ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\derivedidentities\MedicalHistory.java:16: warning: [deprecation] Entity in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Entity;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\derivedidentities\bidirectional\OneToOneWithDerivedIdentityTest.java:17: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\derivedidentities\e1\a\DerivedIdentitySimpleParentIdClassDepTest.java:11: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\derivedidentities\e1\b\specjmapid\lazy\CompositeKeyDeleteTest.java:13: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\embedded\Country.java:14: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\embedded\EmbeddedTest.java:16: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\embedded\RegionalArticlePk.java:13: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\embedded\many2one\Address.java:11: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\embedded\one2many\Alias.java:11: warning: [deprecation] Entity in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Entity;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\embedded\one2many\Name.java:10: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\embedded\one2many\PersonName.java:14: warning: [deprecation] AccessType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.AccessType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\entity\BasicHibernateAnnotationsTest.java:22: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\entity\Forest.java:21: warning: [deprecation] Index in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Index;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\entityGraph\OrmXmlParseTest.java:11: warning: [deprecation] ConfigHelper in org.hibernate.internal.util has been deprecated
import org.hibernate.internal.util.ConfigHelper;
                                  ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\enumerated\EnumeratedTypeTest.java:15: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\enumerated\custom_mapkey\MapKeyCustomEnumTypeTest.java:11: warning: [deprecation] SQLQuery in org.hibernate has been deprecated
import org.hibernate.SQLQuery;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\filter\subclass\SubClassTest.java:9: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\filter\subclass\joined\JoinedSubClassTest.java:9: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\id\sequences\IdTest.java:38: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertEquals;
                             ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\id\sequences\IdTest.java:39: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertNotNull;
                             ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\idclass\IdClassCompositePKTest.java:14: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\indexcoll\Training.java:18: warning: [deprecation] Sort in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Sort;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\indexcoll\Training.java:19: warning: [deprecation] SortType in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.SortType;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\inheritance\SubclassTest.java:13: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\inheritance\joined\Document.java:13: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\join\Cat.java:21: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\join\Cat.java:22: warning: [deprecation] Index in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Index;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\join\JoinTest.java:16: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\lob\hhh4635\LobTest.java:9: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\manytomany\Woman.java:19: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\manytoone\ForestType.java:19: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\manytoone\Car.java:16: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\manytoone\ManyToOneTest.java:14: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\onetomany\City.java:20: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\onetomany\Trainer.java:18: warning: [deprecation] ForeignKey in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.ForeignKey;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\onetoone\OneToOneTest.java:13: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\query\QueryAndSQLTest.java:19: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\query\QueryAndSQLTest.java:20: warning: [deprecation] SQLQuery in org.hibernate has been deprecated
import org.hibernate.SQLQuery;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\query\QueryAndSQLTest.java:28: warning: [deprecation] PostgreSQLDialect in org.hibernate.dialect has been deprecated
import org.hibernate.dialect.PostgreSQLDialect;
                            ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\reflection\JPAOverriddenAnnotationReaderTest.java:67: warning: [deprecation] XMLHelper in org.hibernate.internal.util.xml has been deprecated
import org.hibernate.internal.util.xml.XMLHelper;
                                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\reflection\XMLContextTest.java:22: warning: [deprecation] XMLHelper in org.hibernate.internal.util.xml has been deprecated
import org.hibernate.internal.util.xml.XMLHelper;
                                      ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\strategy\Storm.java:18: warning: [deprecation] Index in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Index;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\subselect\SubselectTest.java:12: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\tableperclass\Component.java:16: warning: [deprecation] Index in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Index;
                                ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\tableperclass\TablePerClassTest.java:15: warning: [deprecation] Query in org.hibernate has been deprecated
import org.hibernate.Query;
                    ^
D:\Vlad\Work\GitHub\hibernate-orm\hibernate-core\src\test\java\org\hibernate\test\annotations\various\Conductor.java:16: warning: [deprecation] Index in org.hibernate.annotations has been deprecated
import org.hibernate.annotations.Index;
                                ^
Note: Some input files additionally use or override a deprecated API.
Note: Some input files additionally use unchecked or unsafe operations.
100 warnings
:hibernate-core:copyBundleResources
:hibernate-core:processTestResources
:hibernate-core:testClasses
:hibernate-core:test
:hibernate-core:buildDashboard

BUILD SUCCESSFUL
</pre> 
                                                            </div>
                                                        </div> <p style="margin: 10px 0 0">As you can see, there are warning, but not for <tt>CriteriaCompilingTest</tt>.</p> <p style="margin: 10px 0 0">I'm also using Oracle JDK:</p> 
                                                        <div class="preformatted panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
                                                            <div class="preformattedContent panelContent" style="padding: 9px 12px"> 
                                                                <pre style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal; white-space: pre; word-break: normal; word-wrap: break-word; word-break: break-all; white-space: pre-wrap">d:\Vlad\Work\GitHub\hibernate-orm\hibernate-core&gt;java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b15, mixed mode)
</pre> 
                                                            </div>
                                                        </div> <p style="margin: 10px 0 0">Can you paste the output that you get when running this test?</p> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff"> 
                                        <table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> 
                                            <tbody>
                                                <tr> 
                                                    <td id="actions-pattern-container" valign="middle" style="padding: 0; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0"> 
                                                        <table align="left" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                                            <tbody>
                                                                <tr> 
                                                                    <td class="actions-pattern-action-icon-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-10960#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none"> <img class="actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-86aaa29e-aae9-4fb1-85a4-a9c6dabdfdfe" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align: middle"> </a> </td> 
                                                                    <td class="actions-pattern-action-text-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px"> <a href="https://hibernate.atlassian.net/browse/HHH-10960#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a> </td> 
                                                                </tr> 
                                                            </tbody>
                                                        </table> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <!-- there needs to be content in the cell for it to render in some clients --> 
                                <tr> 
                                    <td class="email-content-rounded-bottom mobile-expand" style="padding: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #ffffff; border-top: 0; border-left: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly" height="5" bgcolor="#ffffff">&nbsp;</td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
                <tr> 
                    <td id="footer-pattern" style="padding: 0; border-collapse: collapse; padding: 12px 20px"> 
                        <table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                            <tbody>
                                <tr> 
                                    <td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> This message was sent by Atlassian JIRA <span id="footer-build-information">(v1000.184.1#100008-<span title="1fb1cc9d7843d715cb5c8659dca05d9b0372565f" data-commit-id="1fb1cc9d7843d715cb5c8659dca05d9b0372565f}">sha1:1fb1cc9</span>)</span> </td> 
                                    <td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0; border-collapse: collapse; padding-left: 20px; vertical-align: top"> 
                                        <table style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                            <tbody>
                                                <tr> 
                                                    <td id="footer-pattern-logo-desktop-padding" style="padding: 0; border-collapse: collapse; padding-top: 3px"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-792b5c39-44f3-45a0-81be-8eab7dbc5109" alt="Atlassian logo" title="Atlassian logo" width="169" height="36" class="image_fix"> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
            </tbody>
        </table>   
    </body>
</html>