Hi Frédéric, It is odd that you don't get 1.4 exceptions in Eclipse, because I regularly get compiler exceptions on other people's code that was compiled for 1.6 while my Compliance Level is set to 1.5.
Did you do a complete clean and rebuild of the workspace? Dave On Jun 15, 2011, at 8:41 AM, Frédéric JECKER wrote: > I've already done this but it seems that it only affects the generated class > files (class version) > Compiler won't complain about 1.5+ method usage such as > String.replace(String, String) and will compile the files "silently" > This results in errors that will only be detected on production systems > running 1.4 vms > > De : Pascal Robert <[email protected]> > Date : Wed, 15 Jun 2011 08:08:21 -0400 > À : Frédéric JECKER <[email protected]> > Cc : WebObjects-Dev Mailing List List <[email protected]> > Objet : Re: JDK 1.4.2 under 10.6.7 > >> It would be more easier to set Eclipse compilation compliance to Java 1.4. >> Preferences -> Java -> Compiler, set Compiler Compliance Level to 1.4. >> >>> Moin list, >>> >>> I need to setup my workspace in order to compile my app with an 1.4 vm. >>> So I downloaded JavaForMacOSX10.5Update4 from Apple's website and extracted >>> the 1.4.2 directory from the archive and copied it to the new standard java >>> vm location (/System/Library/Java/JavaVirtualMachines). >>> Under eclipse I create a new "MacOSX VM" pointing to the 1.4 vm. >>> The problem is that after selecting the 1.4 vm in the "JRE System >>> Libraries" part of the eclipse window each jar file is pointing on the 1.6 >>> vm. >>> Any clue (I checked every single symbolic link without any success) ? >>> >>> Thanks for your help >>> >>> Fred >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca >>> >>> This email sent to [email protected] >> > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
