Re: latest changes in java.lang.Class

2019-01-10 Thread Joseph D. Darcy
Hello, That does seem to be a bug in the changes I made for JDK-6304578: (reflect) toGenericString fails to print bounds of type variables on generic methods The logic in methodToString is used to build messages for exceptions and the omission of the argument information is a likely caus

Re: latest changes in java.lang.Class

2018-12-30 Thread Scott Palmer
The string concatenation nested in the append argument is also strange. Won’t javac make an new StringBuilder to handle that? And single character appends should be done with chars ‘.’ not strings “.” Scott > On Dec 30, 2018, at 7:16 AM, Andrew Luo > wrote: > > Stream.of should not be used w

RE: latest changes in java.lang.Class

2018-12-30 Thread Andrew Luo
Stream.of should not be used with null. https://docs.oracle.com/javase/9/docs/api/java/util/stream/Stream.html#of-T- I think you'd be right if it were Stream.ofNullable, and there does appear to be a bug in that code (never appended to sb) - thanks for pointing that out... Thanks, -Andrew ---