Hello,

I'm trying to build the small (typically about 400+ KB) client library of 
H2. Below is my exact console log (working under Debian Linux) with Java 
versions included at the bottom. For some reason, it compiles me a library 
of 1.6 MB instead of 400+ KB.

It still builds, despite the warning message, and this is not critical for 
me, but since I noticed it, and couldn't explain it to myself, I wanted to 
mention it here and ask for advise. Has anyone seen similar effects?

---------------- log ----------------

user@localhost:~/dev$ rm -rf h2database
user@localhost:~/dev$ git clone https://github.com/h2database/h2database.git
Cloning into 'h2database'...
remote: Counting objects: 127948, done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 127948 (delta 26), reused 35 (delta 11), pack-reused 127895
Receiving objects: 100% (127948/127948), 52.54 MiB | 4.20 MiB/s, done.
Resolving deltas: 100% (93292/93292), done.
Checking connectivity... done.
user@localhost:~/dev$ cd h2database/h2
user@localhost:~/dev/h2database/h2$ ./build.sh jarClient
Target: jarClient
Deleting temp
Deleting docs
Downloading 
http://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar
Downloading 
http://repo1.maven.org/maven2/org/apache/lucene/lucene-core/3.6.2/lucene-core-3.6.2.jar
Downloading 
http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.6.0/slf4j-api-1.6.0.jar
Downloading 
http://repo1.maven.org/maven2/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar
Downloading 
http://repo1.maven.org/maven2/org/osgi/org.osgi.enterprise/4.2.0/org.osgi.enterprise-4.2.0.jar
Downloading 
http://repo1.maven.org/maven2/com/vividsolutions/jts-core/1.14.0/jts-core-1.14.0.jar
Downloading http://repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar
Compiling 29 classes
src/main/org/h2/engine/Database.java:997: warning: [unchecked] unchecked 
cast
        return (HashMap<String, DbObject>) result;
                                           ^
  required: HashMap<String,DbObject>
  found:    HashMap<String,CAP#1>
  where CAP#1 is a fresh type-variable:
    CAP#1 extends DbObject from capture of ? extends DbObject
1 warning
Copying 1 files to temp
Zip temp/org/h2/util/data.zip (164 KB)
Jar bin/h2-client-1.4.196.jar (1620 KB)
Exception in thread "main" java.lang.RuntimeException: Expected file size 
350 - 450 KB, got: 1620
        at org.h2.build.Build.jarClient(Build.java:519)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.h2.build.BuildBase.invoke(BuildBase.java:272)
        at org.h2.build.BuildBase.runTarget(BuildBase.java:237)
        at org.h2.build.BuildBase.run(BuildBase.java:218)
        at org.h2.build.Build.main(Build.java:35)
user@localhost:~/dev/h2database/h2$ java -version
java version "1.7.0_151"
OpenJDK Runtime Environment (IcedTea 2.6.11) (7u151-2.6.11-1~deb8u1)
OpenJDK Client VM (build 24.151-b01, mixed mode, sharing)
user@localhost:~/dev/h2database/h2$ javac -version
javac 1.7.0_151

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to