Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. java.rmi.server RemoteObjectInvocationHandler * java.text DecimalFormat * (2 new methods) Enable feature "DecimalFormat.setParseBigDecimal" to support the DecimalFormat.setParseBigDecimal(boolean) method, but parsing and formatting precision will still be limited by the java.lang.Double or Retrotranslator employs the ASM bytecode manipulation framework to transform compiled Java classes and the backport of the Java 5.0 concurrency utilities to emulate the Java 5.0 API. The following script can be used to build one jar compatible with Java 1.4 and another one compatible with Java 1.3. navigate here
Enable feature "System.getProperty" to identify the current JVM as compatible with Java5.0 when calling this method at runtime3. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Log in to post a comment. How to use Retrotranslator from Apache Ant or Maven? Therefore another approach is also used: for example, additional instance and static methods for java.lang.Boolean are added from net.sf.retrotranslator.runtime.java.lang._Boolean (leading underscore) if it is found. https://sourceforge.net/p/retrotranslator/discussion/513539/thread/2601b1be/
If backported methods require access to non-public methods or fields of the instance, they can do it with reflection when the security manager allows such access. URL5 * (2 new methods) The Proxy parameter is ignored by the URL.openConnection(Proxy) method. In case of warnings the build fails unless the value of the failonwarning attribute is set to false. The backports of public instance fields are not supported, but private instance fields can be emulated using a weak identity map, see net.sf.retrotranslator.runtime.java.lang._Thread for an example.
java.lang.management ManagementFactory getPlatformMBeanServer() The ManagementFactory.getPlatformMBeanServer() method simply returns the first registered MBeanServer or creates it when no one exists. All rights reserved. false Stack Trace Search | Eclipse | IntelliJ | Contact | FAQ | [email protected][email protected] [email protected][email protected]@net$sf$retrotranslator$registry$advanced14.properties file Maven-Central / org.fusesource.mqt.....ient-java1.4-uber / 1.5 1.10 1.9 1.8 Every command line option can be set using the corresponding attribute. The Java 5.0 reflection methods may return incomplete information for dynamically generated classes.
Every use of Java 5.0 API will result in a warning message if the classpath contains jar files from JRE 1.4. false -keepclasslit Prevents replacement of certain types like java.lang.Iterable or java.util.Queue with their base types in class literals. Alternative tools Retroweaver Declawer JBossRetro Contact Project summary Latest documentation Open discussion Help Bugs Feature requests Author License Copyright (c) 2005 - 2009 Taras Puchko All rights reserved. http://www.findjar.com/jar/net.sf.retrotranslator/jars/retrotranslator-runtime-1.0.4.jar.html?all=true For example, if you're starting your program on the command line like so: java -jar my-jar.jar foo.bar.MainClass, you would add this package to the classpath like so: java -cp /path/to/downloaded/file/retrotranslator-runtime-1.0.4.jar -jar
How to use Retrotranslator from the command line? This makes the translated application independent of other versions of Retrotranslator present in the classpath. - -lazy Asks the translator to transform and verify only the classes compiled with a target What Java 5.0 features are supported? false -retainapi Asks the translator to modify classes for JVM compatibility but keep use of API unless overriden with the backport option.
Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/retrotranslator/runtime/java/lang/_Boolean . . . https://java.net/projects/jdigraph/sources/svn/content/trunk/source/common/retrotranslator/readme.html?raw=true And the most flexible but unsupported in certain cases way has been used by net.sf.retrotranslator.runtime.java.lang._StackTraceElement. What Java 5.0 features are supported? The methods should be public static and must accept an original class instance as the first argument if they replace instance methods.
Look at the net.sf.retrotranslator.runtime.java.math._BigDecimal class: For a static field there is a public static field with the same name and type. false -verbose Asks the translator for verbose output. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All supplementary code points are considered as unassigned.
findJAR.com is part of the serFISH.com service network. You seem to have CSS turned off. How to use Retrotranslator from Apache Ant or Maven? http://opinfos.com/general/net-sf-retrotranslator-runtime-java-lang-enum.html The jar file will be compatible with Java 1.4 and independent of Retrotranslator because backport classes are added to the translated application with a different package name.
false -retainflags Whether to keep Java 5.0 specific access modifiers. Since most backported classes are discovered by Retrotranslator at translation time, you may write an extension and simply put it into the Retrotranslator classpath to make it work. All rights reserved.
Download and unzip the binary distribution file Retrotranslator-n.n.n-bin.zip, where n.n.n is the latest Retrotranslator release number.
Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. Backport name form Example net.sf.retrotranslator.runtime
com.mycompany.backport : java.util.concurrent:edu.emory.mathcs.backport.java.util.concurrent
com.sun.org.apache.xerces.internal:org.apache.xerces : java.lang.StringBuilder:java.lang.StringBuffer
java.util.LinkedHashMap:org.apache.commons.collections.map.LinkedMap : java.lang.System.nanoTime:edu.emory.mathcs.backport.java.util.concurrent.helpers.Utils.nanoTime 5 * ProxySelector5 * Socket3,5 Socket(Proxy) Enable feature "Socket.New" to to call the Socket(Proxy) constructor, but the Proxy parameter will be ignored. On You may use nested src elements to specify source directories or JAR files, and nested classpath elements to specify classpath for verification.
Verifying 9 file(s) in /Users/dinas/myapp/tools/lib-java-1.4/abcd-serviceTasks-1.2.jar. How to write an extension? How to produce a jar file compatible with Java 1.4? Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3.
How to use Retrotranslator from command line? An asterisk designates all API members introduced in Java 5.0. If the additional methods require access to non-public methods or fields of the instance, they cannot be fully handled by Retrotranslator. Generics Annotations Reflection on generics and annotations Typesafe enums Autoboxing/unboxing Enhanced for loop Varargs Covariant return types Formatted output Static import Concurrency utilities Collections framework enhancements How to use Retrotranslator from
The constants inlined by a compiler and access modifiers are ignored during the verification. Any references introduced by a compiler remain unchanged, like the use of java.lang.StringBuilder for string concatenation or the implicit valueOf method calls for autoboxing. gov/xxx/xxx/....../servicetasks/axis/FixSoapBindingStub.class Class not found: org.apache.tools.ant.Task Constructor not verified: org.apache.tools.ant.Task() Class not found: org.apache.tools.ant.BuildException Class not found: org.apache.tools.ant.Project Class not found: org.apache.tools.ant.Task, location: gov.nih.nci.cagrid.introduce.servicetasks.axis.FixSoapBindingStub Method not