| 64 | * About the applet - java 5 backward compatibility has to be implemented because there is no other way to run the applet under MacOS 10.5(it default 64 bit java6 but the browsers use 32 bit only, so mac browser uses java 5). Set jre that eclipse use to 1.5 and java-compiler-plugin in maven to 1.5(source and target tags). In this case maven will use java 1.5 for compiling. Keep in mind that the errors that eclipse shows are not all the errors - maven install has to be used as compiler too. Most of the errors are trivial: |
| 65 | * enums has to be imported as static imports - static import org.sophie2.*.EnumName.*; |
| 66 | * @Override annotations for the methods coming from interface not superclass has to be removed. |
| 67 | * <?> generics has to be changed where the wildcards of the class are V and T for example. One way to do this it to just remove generic and add suppress warning(because <?> include everything possible for parameter). |
| 68 | * Where classes from java 6 are used a way to pass over them has to be implemented. For example TransferSupport is not included in java6 so TransferHandler importData(JComponent, Transferable) has to be used instead of importData(TransferSupport). Another example is that IOException class doesn't have constructor which takes throwable argument(only String). So where IOException is thrown SophieLog has to be used to log the throwable object and appropriate string has to be added in IOException throw. |
| 69 | * Applet has to use MDAppletWindow to show in the real applet window no in the separate one. |