[ https://issues.apache.org/jira/browse/LUCENENET-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicholas Paldino updated LUCENENET-278: --------------------------------------- Attachment: DateField.patch SupportClass.patch Added a new nested class to SupportClass, Long, which contains methods from the Long class in Java which do not exist (or perform in the same way) as they do on the Int64 structure in .NET. Changed the DateField class to use the static ToJavaString method on the Long class instead of a call to the ToString method on the Convert class, as it does not allow a radix that is not a power of 2 (up to 32) or 10 (36 is passed in the tests). > Instances of DateField class cannot be created. > ----------------------------------------------- > > Key: LUCENENET-278 > URL: https://issues.apache.org/jira/browse/LUCENENET-278 > Project: Lucene.Net > Issue Type: Bug > Reporter: Nicholas Paldino > Priority: Blocker > Attachments: DateField.patch, SupportClass.patch > > > The DateFIeld class has a line which is called on object creation (it is in a > field assignment): > System.Convert.ToString(1000L * 365 * 24 * 60 * 60 * 1000, 36).Length; > Which ends up throwing an exception and prevents instances of the class from > being called. > This currently prevents some of the test cases from executing correctly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.