backport

Easy way to backport Java 6 code to Java 5?

We've been developing a windows based application using Java for a while now, but NOW we want to make a mac port and have to reverse of code from Java 6 and Java 5. Is there any easy way to do this rather than re-coding Java 6 specific code? We'd like to keep our code up to date. ...

What are your favorite tools to backport modifications from branch to trunk in subversion directories ?

On a project I'm working on, we use subversion, with tortoiseSVN as a client, under windows XP. As we enter in production and continue development in parallel, many branches are created. Often, we have to backport modifications made on the branch to the trunk, or to older branches. Backporting is a very delicate task, as many errors ca...

Converting java 1.5 source into 1.1 source

I am trying to convert java 1.5 source code into equivalent 1.1 source. My strategy so far has been to try to cross-compile 1.5 source into 1.1 byte code, and then decompile the 1.1 byte into 1.1 source code. I see that there are issues with cross-compiling using the -target option to javac. Can anyone explain the hang-up here? Is th...

Java 5 to Java 1.4 Source Code Backporting Tool

Is there a tool that, given a Java 5 level source code, will backport it to Java 1.4-compliant source code, by removing Generics declarations, transforming for eachs in simple fors or iteration fors, etc.? Please note that I am looking for a tool that translates source code to source code, not class binaries. ...

Backport Java 5/6 features to Java 1.4?

We are stuck with Java2SE v1.4 till the end of 2010. That's really nasty, but we can't help it. What options do we have to use some of the new features already now? I can think of several ways like changing the bytecode, e.g. using Retrotranslator or Retroweaver. backport of libraries, e.g. Concurrent Backport, but this does not help f...

Translating C# Delegates from 2005 Project to C# 2003

Hi, I’m trying to compile in VS2003 that MouseTracking project that was made in C# 2005. I’ve got it fixed up except for one line: proc = HookCallback; This gives the error    Method 'MouseTracking.MouseTracker.HookCallback(int, System.IntPtr, System.IntPtr)' referenced without parentheses If I add parantheses to HookCallback, I...

backport function modifiers to python2.1

I have some code I developed in python 2.4++ and you bet, I have to backport it to python 2.1! function decorators were so attractive that I have used @classmethod at a few spots, without taking notice of the fact that it is only available starting at version 2.4. the same functionality is offered by function modifiers but these appear...

Backporting float("inf") to Python 2.4 and 2.5

I'm backporting my project from Python 2.6 to Python 2.4 and 2.5. In my project I used float("inf"), and now I find it is unavailable on Python 2.5. Is there a backport of it? ...

javax.swing.grouplayout not exist in jdk 1.5

I developed a java application with netbeans. It used jdk 1.6. It works fine. But now the requirement is I need to build the jar for the application from the .java files in another machine without netbeans and where jdk 1.5 is used. I cannot upgrade that machine to jdk 1.6. Is there any way I could make my java files compile and work ...

with statement - backport for Python 2.5

I'd like to use with statement in Python 2.5 in some production code. It was backported, should I expect any problems (e.g. with availability/compatibility on other machines/etc)? Is this code from __future__ import with_statement compatible with Python 2.6? ...

Using backport-android-bluetooth on Android 1.6

Hi, I'm trying to write an application using Bluetooth on Android 1.6. Since it's not officially supported, I found the backport of android.bluetooth API ( http://code.google.com/p/backport-android-bluetooth ). But when I deploy the sample chat application (modified for backport) LogCat gives me the error below: My question is, how I c...

python backports for some methods

Is there any backport for the following methods to work with python 2.4: any, all, collections.defaultdict, collections.deque ...

Python 2.6 to 2.5 cheat sheet

I've written my code to target Python 2.6.5, but I now need to run it on a cluster that only has 2.5.4, something that wasn't on the horizon when I wrote the code. Backporting the code to 2.5 shouldn't be too hard, but I was wondering if there was either a cheat-sheet or an automated tool that would help me with this. For some things, li...