I created pull request number 594. Copied below is the explanation:

------

I fear that I am opening a proverbial "great can of really big worms", but 
for myself, I had to do this, since I work a lot with Android devices which 
only accept code compiled with Java 1.6.


Last summer, when H2 was at 1.4.190, I was able to compile it (how exactly, 
I don't remember any more) with Java 1.6 and the resulting class files work 
nicely on Android. Today, I found that I was no longer able to. I think 
that in the last year, lots of Java 1.7 and even 1.8 code has been 
introduced into H2, and it no longer compiles.


I checked again the website and it still said that 1.6 compatibility is a 
goal. Then I went through a large number of error messages and tried to 
bend everything back to 1.6 while causing as little disruption or loss of 
function as possible.


I'm afraid that in the branch containing test cases, I caused some loss of 
function. There were multiple functions which were entirely dependent on 
JDBC's getObject() call, which was introduced with 1.7, that I had no idea 
what to do with them, so I commented them out. In the main branch, I think 
I got through the process without damaging anything, mostly it was try() {} 
statements with closeable resources in round brackets. I rewrote them into 
try {} finally {} statements.


P.S. This code needs serious testing. Don't accept it easily. I am doubtful 
of the quality of my work, as it was simply too much to keep in mind at 
once.

-- 
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