Re: Question on binary compatibility regarding default methods

2014-03-19 Thread Remi Forax
On 03/19/2014 12:36 AM, Krystal Mok wrote: Hi all, I'm curious about a corner case of binary compatibility with regard to default methods and separate compilation (the source of many evils...). The example is run with JDK 8 build 132. Description: The starting point is that I've got an interfa

Re: JDK 8 - Lambda - Reflection issues

2014-03-14 Thread Remi Forax
uggestions how this can be solved, I'm all ears; any reply would be greatly appreciated. Thanks! Pavel On 12/03/14 19:42, Remi Forax wrote: On 03/12/2014 07:12 PM, Pavel Bucek wrote: Hello all, I have an issue with getting generic parameter when using lambdas. I can get the type when using an

Re: JDK 8 - Lambda - Reflection issues

2014-03-14 Thread Remi Forax
On 03/13/2014 11:09 AM, Paul Sandoz wrote: On Mar 12, 2014, at 7:42 PM, Remi Forax wrote: As you have seen a lambda is not an anonymous class :) A non-serializable lambda is more lightweight than an anonymous class so the generic information that are transmitted from the bytecode to the

Re: JDK 8 - Lambda - Reflection issues

2014-03-14 Thread Remi Forax
Handler(Paths::get, path -> ...); cheers, Rémi On 12/03/14 19:42, Remi Forax wrote: On 03/12/2014 07:12 PM, Pavel Bucek wrote: Hello all, I have an issue with getting generic parameter when using lambdas. I can get the type when using anonymous classes. code sample will be more descri

Re: JDK 8 - Lambda - Reflection issues

2014-03-12 Thread Remi Forax
On 03/12/2014 07:12 PM, Pavel Bucek wrote: Hello all, I have an issue with getting generic parameter when using lambdas. I can get the type when using anonymous classes. code sample will be more descriptive than anything I would say, so.. : public class Main { public static interface A

Re: where is the right place to submit bug reports?

2013-12-30 Thread Remi Forax
On 12/30/2013 11:07 AM, Andrew Haley wrote: On 12/27/2013 05:56 PM, Joe Darcy wrote: Yes; unless you have author role or higher in OpenJDK, the bugs.sun.com process is the most appropriate one. That is Very Bad Indeed. People who are not authors should be able to submit bugs to OpenJDK. Andre

Re: Changes to look and feel of javadoc generated API pages in JDK 8

2013-11-06 Thread Remi Forax
On 11/06/2013 10:43 PM, Bhavesh Patel wrote: Hi All, Based on the feedback received on the new UI implementation in JDK 7 javadoc, we have made some minor changes to look and feel of the API pages generated by javadoc in JDK 8. The JDK API documentation pages will be using DejaVu font.

Re: Shouldn't Optional be Serializable?

2013-09-21 Thread Remi Forax
On 09/20/2013 09:46 PM, Martin Buchholz wrote: Both Collections.emptyList and Collections.singleton are serializable. I think of Optional as a zero-or-one collection, so it should be serializable too. Hi Martin, if Optional is a zero-or-one collection, it should implements Collection, it d

Re: Shouldn't Optional be Serializable?

2013-09-21 Thread Remi Forax
ngful error message. Éamonn Rémi 2013/9/19 Remi Forax mailto:fo...@univ-mlv.fr>> On 09/18/2013 07:32 PM, Pete Poulos wrote: One use case to consider here is RPC. many RPC frameworks use serialization to transmit the results of the RPC call over the networ

Re: Shouldn't Optional be Serializable?

2013-09-19 Thread Remi Forax
optional exist at the API level in order to prevent NPEs, why can't it be useful at the individual class level to prevent NPEs? Cheers, Joseph On Tue, Sep 17, 2013 at 11:37 PM, Remi Forax wrote: There is a good reason to not allow Optional to implement Serializable, it promotes a ba

Re: Shouldn't Optional be Serializable?

2013-09-18 Thread Remi Forax
#x27;re right, but I think that the Java community is more mature than that. Cheers Rémi Sent from my phone On Sep 18, 2013 2:41 AM, "Remi Forax" <mailto:fo...@univ-mlv.fr>> wrote: There is a good reason to not allow Optional to implement Serializable, it pro

Re: Shouldn't Optional be Serializable?

2013-09-17 Thread Remi Forax
y Optional cannot support that. For "reference", Google Guava's version is serializable. If someone were to replace their use with jdk's Optional then they will hit exceptions if the owner class is serialized. Sent from my phone On Sep 17, 2013 6:06 PM, "Remi Forax" wrote:

Re: Shouldn't Optional be Serializable?

2013-09-17 Thread Remi Forax
On 09/17/2013 11:44 PM, Pete Poulos wrote: Shouldn't java.util.Optional be Serializable? Is there a good reason for it not be? wrong question. the right one is why do you want Optional to be Serializable. Thanks, Pete cheers, Rémi

Re: What is the type of a "method reference"?

2013-06-12 Thread Remi Forax
On 06/12/2013 10:35 AM, Behrooz Nobakht wrote: Thanks for the reply. Just a follow-up question regarding the fact that method references *do not* have a type: When a Java 8 method reference is compiled, what is it translated to? Is there any specific place in the source of Java 8 I can look up t

Re: JEP 175: Integrate PowerPC/AIX Port into JDK 8

2013-02-07 Thread Remi Forax
On 02/07/2013 05:45 PM, Christian Thalinger wrote: On Feb 4, 2013, at 8:18 PM, Martijn Verburg wrote: Hi Christian, This was discussed at FOSDEM (and in the months leading up to it). We are going to start a prototype for this idea in the LJC and gather requirements, look at security implic

Re: Adding support section/segment separating comments

2012-12-13 Thread Remi Forax
Hi Behrang, Jon Gibbons has recenly pushed a new API that allow to extract javadoc comment easily, so I think with this API you should be able to write your own Doclet to verify that the right section contains the right information. I'm not a big fan of this way to segment a class because deve

Re: [8] Review request for 7197401: Add a subset of the org.objectweb.asm packages to JDK 8

2012-09-25 Thread Remi Forax
On 09/25/2012 05:04 PM, Jim Holmlund wrote: On 9/25/2012 7:57 AM, Dmitry Samersoff wrote: Jim, What is the reason of creating separate jdk.internal package tree - we already have sun. and com.sun. treated as internal. Mark R said to put it in jdk.internal. - jjh There is already of version

Re: OpenJDK 8 and fastdebug

2012-04-20 Thread Remi Forax
Just hsdis, but maybe the one from Graal that use a better assembler syntax. Rémi Sent from my Phone - Reply message - From: "Krystal Mok" To: "Remi Forax" Cc: Subject: OpenJDK 8 and fastdebug Date: Fri, Apr 20, 2012 09:44 I see. That makes sense.BTW, is it hsdi

Re: OpenJDK 8 and fastdebug

2012-04-20 Thread Remi Forax
The idea is to bundle jadis with the fast debug VM. Rémi Sent from my Phone - Reply message - From: "Krystal Mok" To: "Rémi Forax" Cc: Subject: OpenJDK 8 and fastdebug Date: Fri, Apr 20, 2012 08:55 PrintAssembly is available in product builds, too. You'll just need to set -XX:+Unlock