Re: Testing FreeMarker against JDK 8 EA builds

Daniel Dekany <[email protected]> Sun, 23 Feb 2014 11:55:21 +0100
Newsgroups gmane.comp.web.freemarker.devel
Message-ID <[email protected]>
Hello,

So far I'm aware of two issues (or maybe just curiosities):

- Default methods doesn't define JavaBean properties in the
  implementing classes. That is,
  java.beans.Introspector.getBeanInfo(clazz).getPropertyDescriptors()
  won't return anything for a getter that's defined in an implemented
  interface as a default method (unless it's overridden in the
  implementing class). That's counterintuitive. (The BeanInfo of the
  interface itself does contain the property though. So I could go
  ahead and issue getBeanInfo on the implemented interfaces of
  introspected classes, but then, FM tries to follow the JavaBean spec
  to the letter, and I suppose getBeanInfo mirrors the spec.)

- The order in which HashMap returns the keys has been changed. I know
  the API clearly states that you shouldn't depend on that order. But
  this will still break a lot of test suites, also some broken code
  out there that has worked accidentally so far. FreeMarker itself
  doesn't break because of this, but the order in which *named*
  varargs FreeMarker macro parameters are iterated in templates is
  affected. According the template language rules, that order is
  unspecified too, but it's the same situation as with HashMap... it
  can break that was broken yet working earlier, slightly increasing
  the risk of an upgrade to Java 8.

-- 
Thanks,
 Daniel Dekany


Monday, January 27, 2014, 1:04:57 PM, Rory O'Donnell Oracle, Dublin Ireland wrote:

> Hi Daniel,
>
> I am interested in understanding you experiences with testing JDK 8 Early Access builds
> (either those published by Oracle, or your own builds). Have you uncovered any showstoppers
> or issues that might stop you developing or certifying with JDK 8. Are there any open issues ?
>
> The latest Oracle build 124 , is available here.
>
> Rgds,Rory
>
> On 25/01/2014 09:49, Daniel Dekany wrote:
> Hi,
>
> I'm the current de facto "lead" developer / maintainer. So you can
> tell me the specifics.


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk