dajester2013 / ivysvn

Automatically exported from code.google.com/p/ivysvn
Apache License 2.0
0 stars 0 forks source link

It doesn't work with Java 1.5 #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
0. Make sure you in a Java 1.5 env.
1. Download the package and followed the setup instruction.
2. Run ant to resolve dependency.

What is the expected output? What do you see instead?
Instead of dependency got resolved, I got class version error.  That
normally caused by JDK version. So, I updated to JDK 1.6, all works.  But I
want to keep using JDK 1.5 since I am not ready to upgrade all my other
libs that are working fine under 1.5.   

What version of the product are you using? On what operating system?
Latest ivy bin distribution, window OS, JDK 1.5, ANT 1.7.1, Subversion
2.0.2 beta.  

Please provide any additional information below.
Maybe the library can be compile with JDK 1.5?  However, I downloaded the
source code as well, but when I try to compile with JDK 1.5, it complains
about the @override annotation where it only apply to extend not implement.  

Any help is appreciated, and I hope it can be compile with JDK 1.5 unless
there is other reasons not to.

Thanks,

- D

Original issue reported on code.google.com by reach...@gmail.com on 2 Sep 2008 at 9:19

GoogleCodeExporter commented 9 years ago
Yes, IvySvn has required Java 6 from the start. The previous site that hosted 
this
project made this clear, I will update the documentation on the Google Code 
site to
mention this too so thanks for pointing that out.

I'm afraid Java 5 compatability isn't something we are going to work on but 
feel free
to check out the source version and make the necessary changes yourself, I'm 
guessing
there's not much that would need to change.

Original comment by massdosage on 3 Sep 2008 at 9:00

GoogleCodeExporter commented 9 years ago
Yep, there isn't much to change at all. I updated the code to not use the new
IOException handling and removed the @Override annotation, since @Override 
annotation
not suppose to be use on implementing interface.
http://java.sun.com/docs/books/tutorial/java/javaOO/QandE/annotations-answers.ht
ml.  

It is all working now.  

Original comment by reach...@gmail.com on 3 Sep 2008 at 11:21

GoogleCodeExporter commented 9 years ago
Aah yes, thanks for noticing the @Override issue. I think some previous version 
of
Eclipse put those in there but you are right, they shouldn't be set on methods 
which
implement an interface, only methods which override something in a parent 
class. I
have removed all of those which were incorrect. 

As for the IOExceptions, the constructor which takes a nested exception is 
really
useful (dunno why they only added that in Java 6!) so I'm probably going to 
leave
that as it is for now.

Glad you got it working!

Original comment by massdosage on 4 Sep 2008 at 9:16

GoogleCodeExporter commented 9 years ago
OK, re-opened as enough people have requested this and the changes necessary are
minimal. Have already committed changes, will go into next (2.0b2) release for 
testing.

Original comment by massdosage on 4 Sep 2008 at 5:55

GoogleCodeExporter commented 9 years ago
I create a SVNIOException subclass to handle the error constructor issue.  

Original comment by staz6...@gmail.com on 10 Sep 2008 at 4:43

GoogleCodeExporter commented 9 years ago
IvySvn 2.0.0 Beta 2 will be Java 5 compatible (or you can check out the current
source from svn). 

I followed Sun's recommendations for making exceptions backward-compatible while
retaining the stack of the original exception by doing this wherever I was 
previously
nesting the exception within an IOException:

    } catch (SVNException e) {
      throw (IOException) new IOException().initCause(e);
    }

Original comment by massdosage on 10 Sep 2008 at 4:48

GoogleCodeExporter commented 9 years ago
Fixed in 2.0.0-beta2 which has just been released.

Original comment by massdosage on 12 Sep 2008 at 11:12