[Bug 452926] [NEW] Warnings during build

Loïc Minier lool at dooz.org
Fri Oct 16 10:55:38 BST 2009

Public bug reported:


There is a large number of warnings during the gcj-based build of c3p0
(NB: I'm quite surprized that it's not compatible with openjdk though as
I used c3p0 with Sun's JDK in the past and would have thought it's
easier to use openjdk than gcj here).

I think the very high number of warnings deserves some work, upstream
and/or in the packaging (I think using the proper source compat level
would help with a bunch).

  [javadoc] WARNING: Cannot locate class java.lang.Object referenced in class com.mchange.v2.c3p0.AbstractConnectionCustomizer
  [javadoc] WARNING: Error while loading class Connection
  [javadoc] WARNING: Error while loading class SQLException
  [javadoc] WARNING: Error while loading class Method
=> a bit worrying; looks like that part is not started properly, or build-deps are missing

    [javac] 1. WARNING in /build/buildd/c3p0- (at line 31)
    [javac] 	public final static Iterator EMPTY_ITERATOR = new Iterator()
    [javac] 	                    ^^^^^^^^
    [javac] Iterator is a raw type. References to generic type Iterator<E> should be parameterized
=> you might want to use an older source compat level or use a parametrized iterator

    [javac] 2. WARNING in /build/buildd/c3p0-
    [javac] nerator.java (at line 71)
    [javac] 	protected void generateExtraSerInitializers(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw)
    [javac]                                                                                      ^^^^^^^^^^^^^^
    [javac] The type IndentedWriter is deprecated
=>self refs to depreacted types

    [javac] 119. WARNING in /build/buildd/c3p0-
    [javac]  (at line 222)
    [javac] 	{ instance().getLogger().exiting( srcClass, srcMeth, result ); }
    [javac] 	  ^^^^^^^^^^^^^^^^^^^^^^
    [javac] The static method getLogger() from the type MLog should be accessed in a static way
=> certainly typos

    [javac] 132. WARNING in /build/buildd/c3p0- (at line 202)
    [javac] 	boolean rethrow = false;
    [javac] 	        ^^^^^^^
    [javac] The local variable rethrow is never read
=> certainly a bug


** Affects: c3p0 (Ubuntu)
     Importance: Undecided
         Status: New

Warnings during build
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to c3p0 in ubuntu.

More information about the Ubuntu-server-bugs mailing list