directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Barrett" <Jaco...@attachmatewrq.com>
Subject RE: [ApacheDS] Moving to JDK 5.0
Date Fri, 23 Sep 2005 16:51:59 GMT
C:\devel\workspace\java5>c:\java\j2sdk1.4.2_07\bin\java -cp bin
java5.Test
Exception in thread "main" java.lang.UnsupportedClassVersionError:
java5/Test (Unsupported major.minor version 49.0)
 
:)


________________________________

	From: Marc Boorshtein [mailto:mboorshtein@gmail.com] 
	Sent: Friday, September 23, 2005 9:15 AM
	To: Apache Directory Developers List
	Subject: Re: [ApacheDS] Moving to JDK 5.0
	
	
	Yeah, i thought it was OK to run on 1.4 once compiled, but I
can't remember where I read that from.
	
	Marc
	
	
	On 9/23/05, Jacob Barrett <JacobBa@attachmatewrq.com> wrote: 

		Not in with my compiler from Sun.
		 
		C:\devel\workspace\java5>c:\java\jdk1.5.0_01\bin\javac
-source 1.5 -target 1.4 src/java5/Test.java
		javac: source release 1.5 requires target release 1.5
		 
		C:\devel\workspace\java5>c:\java\jdk1.5.0_01\bin\javac
-source 1.4 -target 1.4 src/java5/Test.java
		src/java5/Test.java:10: generics are not supported in
-source 1.4
		(try -source 1.5 to enable generics)
		public class Test<T>
		                 ^
		1 error


________________________________

			From: Marc Boorshtein
[mailto:mboorshtein@gmail.com] 
			Sent: Friday, September 23, 2005 8:45 AM
			To: Apache Directory Developers List
			Subject: Re: [ApacheDS] Moving to JDK 5.0
			
			
			
			Well, the language features are backwards
compatible (generics & enums).  I think the main problem is the class
libraries.  Prior to 1.4 new labraries went first into the "javax"
package first, so you could use them in older JREs.  
			
			As to anyone using it in production, I'd be very
doubtfull that any commercial apps are shipping 1.5 (I know several that
still require 1.3).
			
			Marc
			
			
			On 9/23/05, Jacob Barrett
<JacobBa@attachmatewrq.com> wrote: 

				While I agree that a move to 1.5 would
be nice you have to consider that
				not all platforms support 1.5 at the
moment.  In particular IBM z/OS
				which is a typical platform that my
company tends to deploy into.
				FreeBSD is only in the beta phase of
producing a native 1.5, you can run
				the Linux version in emulation.  Also,
most of the application servers
				out there are still only 1.4, so
limiting to 1.5 only works in a
				"standalone" mode.
				
				If there is a way to take advantage of
the language constructs in 1.5
				but target 1.4 byte code then I would be
all for it.  Retroweaver is
				interesting, but does it produce
production stable byte code?
				
				Has anyone on here REALLY used it in a
production environment?
				




Mime
View raw message