<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>lekkimworld.comjava5</title>
    <link>http://lekkimworld.com/tags/java5/</link>
    <description>IBM Lotus Notes/Domino, Websphere, IBM Connections, mobile, web, JavaScript, Java...</description>
    <language>en</language>
    <copyright>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</copyright>
    <pubDate>Sat, 19 May 2012 06:50:25 GMT</pubDate>
    <dc:creator>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</dc:creator>
    <dc:date>2012-05-19T06:50:25Z</dc:date>
    <dc:language>en</dc:language>
    <dc:rights>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</dc:rights>
    <image>
      <title>lekkimworld.comjava5</title>
      <url>http://lekkimworld.com/tags/java5/</url>
    </image>
    <item>
      <title>Discovering Notes 8: Enabling Java 5 source compilation</title>
      <link>http://lekkimworld.com/2007/08/27/discovering_notes_8_enabling_java_5_source_compilation.html</link>
      <content:encoded>&lt;p&gt;
&lt;img src="http://lekkimworld.com/images/notes8/notes8_100px.jpg" style="float: left; "/&gt;
I'm playing around with Notes 8 to get my bearings on the Gold release and I'm liking it. I'm kind of a Java-nut so I wanted to see if Lotus delivered on their promises to include Java 5 in Notes 8 and they did. Unfortunately the Java API hasn't been updated for this release but hopefully this will happen in the near future. I know I will certainly stress that it will in the Domino Application Development Design Partner program where I have been fortunately enough to be included (together with &lt;a href="http://www.lotus911.com/nathan/escape.nsf/d6plinks/NTFN-764LRX"&gt;Nathan &lt;/a&gt; and a fine line of other fine folks&lt;/a&gt;). 
&lt;/p&gt;
&lt;p&gt;
To test it out I fired up Domino Designer and created an agent to use &lt;a href="http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html"&gt;generics &lt;/a&gt; and some &lt;a href="http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html"&gt;autoboxing&lt;/a&gt;. Both are highly awaited in the Notes Java world - at least by me - and it will be really nice to have. The test agent code is as follows (generics and autoboxing is highlighted):
&lt;pre class="code"&gt;
import lotus.domino.*;
import java.util.*;

public class JavaAgent extends AgentBase {

   public void NotesMain() {

      try {
         Session session = getSession();
         AgentContext agentContext = session.getAgentContext();

         &lt;b&gt;int size = new Integer(10)&lt;/b&gt;;
         List&lt;b&gt;&amp;lt;Document&amp;gt;&lt;/b&gt; docs = new ArrayList&lt;b&gt;&amp;lt;Document&amp;gt;&lt;/b&gt;(size);
         for (Document d : docs) {
            d.getUniversalID();
         }

      } catch(Exception e) {
         e.printStackTrace();
      }
   }
}
&lt;/pre&gt;
To my surprise the above code didn't compile and gave me the below compile error message. 
&lt;/p&gt;
&lt;p align="center"&gt;
&lt;img src="http://lekkimworld.com/images/notes8/notes8_java5_generics_source.jpg" /&gt;
&lt;/p&gt;
&lt;p&gt;
I tried compiling the same code in Eclipse (using Java 5 source compatibility) and importing the class file as an Imported Java agent which worked fine. Hmmm - binary support but no source support? Last resort - look for clues in the release notes and there you have it! In the section "Installation, migration, upgrade, and configuration information\Upgrade notes\Notes/Domino 8 upgrade to JDK (Java Development Kit) 1.5" it states that in order to keep backwards compatibility Java 5 source compilation in Domino Designer is &lt;b&gt;disabled&lt;/b&gt; out of the box. To enable it add the following notes.ini variable and restart Notes:
&lt;pre class="code"&gt;
JavaCompilerTarget=1.5
&lt;/pre&gt;
&lt;/p&gt;
&lt;p&gt;
Once this line has been added I was able to compile the above code... :-)
&lt;/p&gt;</content:encoded>
      <category domain="http://lekkimworld.com/categories/java/">Java</category>
      <category domain="http://lekkimworld.com/categories/ibm_products/">IBM</category>
      <category domain="http://lekkimworld.com/tags/discovering_notes8/">discovering_notes8</category>
      <category domain="http://lekkimworld.com/tags/java/">java</category>
      <category domain="http://lekkimworld.com/tags/java5/">java5</category>
      <category domain="http://lekkimworld.com/tags/notes8/">notes8</category>
      <pubDate>Mon, 27 Aug 2007 07:25:42 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2007-08-27:default/1188199542259</guid>
      <dc:date>2007-08-27T07:25:42Z</dc:date>
    </item>
    <item>
      <title>Looking forward to Java 5+ support in Notes</title>
      <link>http://lekkimworld.com/2006/10/30/looking_forward_to_java_5_support_in_notes.html</link>
      <content:encoded>You don't really appreciate new language features until you have to back-port existing code to not use certain features. I really hope Hannover and Domino Next will have Java 5+ support.&lt;p&gt;&lt;a href="http://lekkimworld.com/2006/10/30/looking_forward_to_java_5_support_in_notes.html"&gt;Read more...&lt;/a&gt;&lt;/p&gt;</content:encoded>
      <category domain="http://lekkimworld.com/categories/java/">Java</category>
      <category domain="http://lekkimworld.com/tags/java/">java</category>
      <category domain="http://lekkimworld.com/tags/java5/">java5</category>
      <pubDate>Mon, 30 Oct 2006 21:06:45 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2006-10-30:default/1162242405202</guid>
      <dc:date>2006-10-30T21:06:45Z</dc:date>
    </item>
  </channel>
</rss>


