[Building Sakai] java 6

Charles Hedrick hedrick at rutgers.edu
Wed May 6 15:26:16 PDT 2009


No, we haven't tried building under Java 6. I would certainly like to  
see the code fixed. I'm trying Java 6 because we've seen occasional GC  
oddities, and I'd like to be in a fairly recent version of the code.


On May 6, 2009, at 6:23:14 PM, Steve Swinsburg wrote:

> Hi Charles,
>
> Did you have trouble building Sakai under Java 1.6 without the extra  
> property? I've been building various versions of Sakai under 1.6 for  
> a few weeks without the property set just fine. Whereabouts in Sakai  
> is the issue?
>
> This property was true by default in Java 1.5, but has been disabled  
> for 1.6. Sun have apparently said they are not going to address this  
> and that code should be fixed to deal with it, so if we can find  
> where it needs to be done we can get on to it.
>
> Workarounds:
>
> 1) Add -Dsun.lang.ClassLoader.allowArraySyntax=true for libraries we  
> need that are broken.
>
> 2) Change loader.loadClass( name ) to Class.forName( name, false,  
> loader ) for our internal code.
>
> ref: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149
>
> cheers,
> Steve
>
> ---
> Steve Swinsburg
> Portal Systems Developer
> Centre for e-Science
> Lancaster University
> Lancaster
> LA1 4YT
>
> email: s.swinsburg at lancaster.ac.uk
> phone: +44 (0) 1524 594870
>
> On 06/05/2009, at 11:00 PM, Charles Hedrick wrote:
>
>> We're doing the last 2 weeks of testing for Sakai 2.6 under Java 6.
>> We're still building under Java 5. The only configuration change is
>> adding -Dsun.lang.ClassLoader.allowArraySyntax=true. If we don't run
>> into problems during testing, I'm considering running under Java 6 in
>> production. I also have a system running Sakai 2.5 under Java 6,
>> though we won't use it in production unless we have an emergency
>> during the next 2 weeks.
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org 
>>  with a subject of "unsubscribe"
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090506/c831e2f0/attachment.html 


More information about the sakai-dev mailing list