Bug 17020 - Using IKVM, java annotation default values not getting initialized
Summary: Using IKVM, java annotation default values not getting initialized
Alias: None
Product: Compilers
Classification: Mono
Component: IL assembler ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-01-02 06:19 UTC by plexer
Modified: 2015-05-30 01:27 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description plexer 2014-01-02 06:19:06 UTC
I am working on a project, in which I need to compile the java code using IKVM. I am facing a problem and will be great if you can help.

We are using java annotations. I noticed that after compilation through IKVM, the default value of java annotation are not getting populated. 

So if i declare an annotation like this:

public @interface DatabaseField {
String property1() default "xyz_string1";
String property2() default "xyz_string2";

and use it like this:

private String x;

the value of property1 for x is null. Do you have any idea how I can provide default value to the annotation properties??
Comment 1 Marek Safar 2015-05-30 01:27:32 UTC
This is not IKVM bug tracker. Please see http://www.ikvm.net/