commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steve cohen <sco...@javactivity.org>
Subject Re: Next Steps - WAS Re: [net] VMSFTPEntryParser bug?
Date Thu, 01 Jan 2004 20:56:59 GMT
Yes, in order to verify that the code doesn't use any 1.2+ code I found that 
you have to also use bootclasspath={path to jdk1.1.8 classes.zip}

There were a couple of other instances:
use of ArrayLists in VMSFTPEntryParser and in ExtendedNNTPOps.java
in the examples section.

I cleaned all of these up and committed them.  In the case of the ArrayList in 
VMSFTPEntryParser, it did not work to change the file container to a Vector.  
This code was calling a method in ORO that returned a Collection, also not 
JDK1.1 compatible.  Since the older ORO method that returned a Vector had 
been deprecated, I looked at what it was doing, which was simply splitting a 
string on a comma.  This was an overkill use of ORO, easily replicated with a 
StringTokenizer.

Talk about a stroll down memory lane!



On Thursday 01 January 2004 02:18 pm, Jeffrey D. Brekke wrote:
> I believe it just produces 1.1 compatible class files.  Maven just
> passes the setting to the ant task, which passes it to javac.  Since
> the HashMap class is is not present under 1.1 I guess we'd just get a
> ClassNotFoundException.
>
> I believe that should be all we need, we shouldn't need to *compile*
> with the javac from 1.1, we just need to use classes that are present
> with 1.1 and produce 1.1 compatible classes ( byte codes ).
>
> >>>>> On Thu, 01 Jan 2004 10:57:24 -0600, steve cohen
> >>>>> <scohen@javactivity.org> said:
> >
> > On Thursday 01 January 2004 09:06 am, Jeffrey D. Brekke wrote:
> >> Maven uses the following property: maven.compiler.target which
> >> defaults to 1.1 so what I last released generated 1.1 compatible
> >> class files.
> >>
> >> http://maven.apache.org/reference/plugins/java/properties.html
> >>
> >> Example: maven -Dmaven.compiler.target=1.2 clean jar
> >
> > Then I don't understand why I was able to build, since HashMap is
> > not in 1.1.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message