Public bug reported:

Hi

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-0.9.1.2/relproj/debuggen/src/classes/com/mchange/v1/util/IteratorUtils.java
 (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-0.9.1.2/src/classes/com/mchange/v2/c3p0/codegen/BeangenDataSourceGe
    [javac] nerator.java (at line 71)
    [javac]     protected void generateExtraSerInitializers(ClassInfo info, 
Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw)
    [javac]                                       
    [javac]                                                                     
                 ^^^^^^^^^^^^^^
    [javac] The type IndentedWriter is deprecated
=>self refs to depreacted types

    [javac] 119. WARNING in 
/build/buildd/c3p0-0.9.1.2/src/classes/com/mchange/v2/log/MLog.java
    [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-0.9.1.2/src/classes/com/mchange/v2/beans/BeansUtils.java (at 
line 202)
    [javac]     boolean rethrow = false;
    [javac]             ^^^^^^^
    [javac] The local variable rethrow is never read
=> certainly a bug

Thanks,

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

-- 
Warnings during build
https://bugs.launchpad.net/bugs/452926
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to c3p0 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to