Closed GoogleCodeExporter closed 9 years ago
See also issue 425
Original comment by TimothyCLethbridge
on 21 Sep 2013 at 12:06
The above example actually does not work with an interface.
interface Const_class_null{
const int e;
}
gives us
const int e;
We will also need to fix this to give the expected output,
public static final int e = null;
Original comment by glkleens...@gmail.com
on 21 Sep 2013 at 4:44
Bellow is a partial fix for this issue. Specifically it throws a warning when a
const value is declared but not initialized within a class.
Original comment by glkleens...@gmail.com
on 21 Sep 2013 at 6:50
Attachments:
Fixed as of revision 3239.
The following values are now set for various types of constants:
0 for Integer, Double or Float
Empty string for String
False for Boolean
Midnight (00:00:00) for Time
The current date for Date
For non-default types no default is set and error 37 is thrown.
Original comment by glkleens...@gmail.com
on 27 Nov 2013 at 5:23
Original comment by glkleens...@gmail.com
on 15 Dec 2013 at 11:30
Original issue reported on code.google.com by
glkleens...@gmail.com
on 20 Sep 2013 at 3:01