Dne 19.1.2018 v 17:46 Chuck Davis napsal(a):
jshell> System.out.println(new java.sql.Date(1415980523459).toString()); | Error: | integer number too large: 1415980523459 | System.out.println(new java.sql.Date(1415980523459).toString()); | ^ I think it's been a LONG time since we could create a date with an integer!!
Add "l" suffix at the end of that big number. Without it, it parses to integer literal and overflows.
-S --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
