Hi Craig,

what do I need to do to see these warnings?

I do not get the warnings, neither with Java 8 (OpenJDK Runtime Environment (Zulu 8.42.0.23-CA-macosx) (build 1.8.0_232-b18)) nor with Java 11 (OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS)).

I agree we should fix these, but it would be good to see them.

Regards Michael


I had installed the new java 8 version u333 but it looks like I just installed 
a jre.

So now I have a proper jdk  8u331. And the most recent maven 3.8.6.


clr% java -version
java version "1.8.0_331"
Java(TM) SE Runtime Environment (build 1.8.0_331-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.331-b09, mixed mode)
[MacBook-Pro-10:git/db-jdo/tck] clr% mvn --version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /Users/clr/apache-maven-3.8.6
Java version: 1.8.0_331, vendor: Oracle Corporation, runtime: 
/Library/Java/JavaVirtualMachines/jdk1.8.0_331.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "12.4", arch: "x86_64", family: "mac"

Now everything compiles and runs ok to completion but I get hundreds of 
warnings of generic class mismatches.

There are many examples, e.g.

     /** Map of transaction isolation String values to Integer */
     protected final static Map levelValues = new HashMap();
     static {
         levelValues.put(Constants.TX_READ_UNCOMMITTED, 0);
         levelValues.put(Constants.TX_READ_COMMITTED, 1);
         levelValues.put(Constants.TX_REPEATABLE_READ, 2);
         levelValues.put(Constants.TX_SNAPSHOT, 3);
         levelValues.put(Constants.TX_SERIALIZABLE, 4);
     }

The untyped levelValues can be changed to HashMap<String, Integer> and probably 
should be. But who is issuing these WARNINGs?

I will continue to add https: to all of the pom.xml and xxx.java files but 
would like to figure out what is going on.

Thanks,

Craig

[INFO] Compiling 898 source files to 
/Users/clr/apache/git/db-jdo/tck/target/classes
[WARNING] DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedPC.PCAppAddress -> 
org.apache.jdo.tck.pc.companyAnnotatedPC.QPCAppAddress
... many more of these messages...
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedFC.FCDSAddress -> 
org.apache.jdo.tck.pc.companyAnnotatedFC.QFCDSAddress
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedFC.FCAppProject -> 
org.apache.jdo.tck.pc.companyAnnotatedFC.QFCAppProject
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedPI.PIAppInsurance -> 
org.apache.jdo.tck.pc.companyAnnotatedPI.QPIAppInsurance
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedFC.FCAppMeetingRoom -> 
org.apache.jdo.tck.pc.companyAnnotatedFC.QFCAppMeetingRoom
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedPI.PIAppDepartment -> 
org.apache.jdo.tck.pc.companyAnnotatedPI.QPIAppDepartment
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedFC.FCAppAddress -> 
org.apache.jdo.tck.pc.companyAnnotatedFC.QFCAppAddress
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedFC.FCDSEmployee -> 
org.apache.jdo.tck.pc.companyAnnotatedFC.QFCDSEmployee
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedPC.PCDSDepartment -> 
org.apache.jdo.tck.pc.companyAnnotatedPC.QPCDSDepartment
DataNucleus : JDOQLTypedQuery Q class generation : 
org.apache.jdo.tck.pc.companyAnnotatedFC.DatastoreIdDiscriminatorClassNameInheritanceSuperclass
 -> 
org.apache.jdo.tck.pc.companyAnnotatedFC.QDatastoreIdDiscriminatorClassNameInheritanceSuperclass
Note: DataNucleus JDO AnnotationProcessor for generating JDOQLTypedQuery Q 
classes
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[166,23]
 [unchecked] unchecked call to put(K,V) as a member of the raw type Map
   where K,V are type-variables:
     K extends Object declared in interface Map
     V extends Object declared in interface Map
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[167,23]
 [unchecked] unchecked call to put(K,V) as a member of the raw type Map
   where K,V are type-variables:
     K extends Object declared in interface Map
     V extends Object declared in interface Map
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[168,23]
 [unchecked] unchecked call to put(K,V) as a member of the raw type Map
   where K,V are type-variables:
     K extends Object declared in interface Map
     V extends Object declared in interface Map
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[169,23]
 [unchecked] unchecked call to put(K,V) as a member of the raw type Map
   where K,V are type-variables:
     K extends Object declared in interface Map
     V extends Object declared in interface Map
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[170,23]
 [unchecked] unchecked call to put(K,V) as a member of the raw type Map
   where K,V are type-variables:
     K extends Object declared in interface Map
     V extends Object declared in interface Map
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[402,34]
 [unchecked] unchecked call to add(E) as a member of the raw type Collection
   where E is a type-variable:
     E extends Object declared in interface Collection
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[411,32]
 [unchecked] unchecked call to add(E) as a member of the raw type Collection
   where E is a type-variable:
     E extends Object declared in interface Collection
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[492,22]
 [unchecked] unchecked call to setClass(Class<T>) as a member of the raw type 
Query
   where T is a type-variable:
     T extends Object declared in interface Query
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[495,37]
 [unchecked] unchecked method invocation: method getExtent in interface 
PersistenceManager is applied to given types
   required: Class<T>,boolean
   found: Class,boolean
   where T is a type-variable:
     T extends Object declared in method <T>getExtent(Class<T>,boolean)
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[495,38]
 [unchecked] unchecked conversion
   required: Class<T>
   found:    Class
   where T is a type-variable:
     T extends Object declared in method <T>getExtent(Class<T>,boolean)
[WARNING] 
/Users/clr/apache/git/db-jdo/tck/src/main/java/org/apache/jdo/tck/JDO_Test.java:[501,27]
 [unchecked] unchecked call to setCandidates(Extent<T>) as a member of the raw 
type Query
   where T is a type-variable:
     T extends Object declared in interface Query

On Jun 26, 2022, at 06:53, Bouschen, Michael 
<michael.bousc...@akquinet.de.INVALID> wrote:

Hi Craig,

I think your JDK version is too old. I downloaded jdk-8u71, installed it and 
see the same errors.
When I use jdk-8u201 everything compiles and runs fine.

Any reason why you are using such an old Java 8 version?
I switched to openjdk from adoptOpenJDK or from Azul (Zulu).

Regards Michael

Craig L Russell
c...@apache.org



Reply via email to