pingidentity / ldapsdk

UnboundID LDAP SDK for Java
Other
334 stars 81 forks source link

warnings while building 3.2.0 #17

Open sandrobonazzola opened 8 years ago

sandrobonazzola commented 8 years ago

Not sure about how much it may be useful, but while building 3.2.0 I've seen the following warnings:

compile: [mkdir] Created dir: /builddir/build/BUILD/ldapsdk-3.2.0/build/classes [javac] Compiling 25 source files to /builddir/build/BUILD/ldapsdk-3.2.0/build/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] 1 warning [javac] Compiling 969 source files to /builddir/build/BUILD/ldapsdk-3.2.0/build/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] /builddir/build/BUILD/ldapsdk-3.2.0/src/com/unboundid/ldap/listener/InMemoryRequestHandler.java:3643: warning: [unchecked] unchecked cast javac connectionState.get( [javac] ^ [javac] required: ObjectPair<ASN1OctetString,List> [javac] found: Object [javac] 2 warnings

dirmgr commented 8 years ago

You can safely ignore these warnings. They don't appear if you build with Java SE 5 (which is the minimum supported version for the LDAP SDK) or Java SE 6, although there are a couple of warnings when building with Java SE 7, and more when building with Java SE 8.

We could get rid of these build warnings in the newer Java versions with SuppressWarnings annotations, but the specific syntax we would need to accomplish that isn't supported in the older Java versions and would break the ability to build on those versions.