Bug 43440 - Nested interface with constants name errors
Summary: Nested interface with constants name errors
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 6.1.2 (C7SR1)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
Depends on:
Reported: 2016-08-16 21:18 UTC by Bill Holmes
Modified: 2016-08-18 06:54 UTC (History)
1 user (show)

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

Sln to reproduce (7.49 KB, application/zip)
2016-08-16 21:18 UTC, Bill Holmes
Requested Java Source (2.17 KB, application/zip)
2016-08-17 13:56 UTC, Bill Holmes

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 Developer Community or GitHub 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 Bill Holmes 2016-08-16 21:18:54 UTC
Created attachment 17064 [details]
Sln to reproduce

Open and build the attached project.  

Open the resulting dll in the assembly browser and find the RenderingMode type.
You will find it as Com.Google.Common.Logging.Nano.VrVREvent.AudioStats.enderingModeValuesConsts.  For some reason we are dropping the R.  Not too happy about us adding Consts to the end either as I provided a name in the transform file.
Comment 1 Atsushi Eno 2016-08-17 10:45:01 UTC
lol that's a silly bug :/ Could you also provide Java sources so that we can easily add variants for testing?
Comment 2 Bill Holmes 2016-08-17 13:56:51 UTC
Created attachment 17082 [details]
Requested Java Source

I may have not recreated the java source correctly.  I wanted to simply create one java file that has all the nested classes but I could not get the java compiler to work with that.  

For reference I the original jar file comes from here...




Here is the binding code for an older version


I hope to have the new version pushed soon with workarounds.
Comment 3 Atsushi Eno 2016-08-18 06:54:13 UTC
Your library is illegal.

We have no plan to support any illegal libraries that does not conform to Java specification. Supporting such libraries brings unexpected amount of costs.

Note that the library does not exist with valid sources anywhere anymore.