Project

General

Profile

Feature #1602

support BigDecimal in PLJAVA indexOf() implementation

Added by Greg Shah over 11 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Vadim Nebogatov
Start date:
07/03/2013
Due date:
07/03/2013
% Done:

0%

Estimated time:
8.00 h
billable:
No
vendor_id:
GCD
version_reported:
version_resolved:

History

#1 Updated by Greg Shah over 11 years ago

  • Target version set to Milestone 7

#2 Updated by Greg Shah over 11 years ago

  • Project changed from Base Language to Database
  • Parent task deleted (#1596)

#3 Updated by Eric Faulhaber about 11 years ago

  • Start date deleted (10/19/2012)

#4 Updated by Eric Faulhaber about 11 years ago

  • Start date set to 06/20/2013
  • Estimated time changed from 4.00 to 8.00
  • Due date set to 06/20/2013
  • Assignee set to Vadim Nebogatov

#5 Updated by Eric Faulhaber about 11 years ago

  • Start date changed from 06/20/2013 to 06/26/2013
  • Due date changed from 06/20/2013 to 06/26/2013

#6 Updated by Eric Faulhaber about 11 years ago

  • Due date changed from 06/26/2013 to 07/03/2013
  • Start date changed from 06/26/2013 to 07/03/2013

#7 Updated by Eric Faulhaber almost 11 years ago

Greg: I just looked into the Functions class and found we have the following method:

   /**
    * Retrieve the 1-based index at which one string is found within another,
    * or 0 if the string is not found, starting at a particular index.
    *
    * @see  com.goldencode.p2j.util.TextOps#indexOf(Text, Text, NumberType)
    */
   public static Long indexOf(String source, String target, BigDecimal start)
   {
      try
      {
         return TextOps.indexOf(new character(source),
                                new character(target),
                                new integer(start)).toJavaLongType();
      }
      catch (RuntimeException exc)
      {
         ErrorHandler.handleError(exc);

         return null;
      }
   }

We also have the variant:

   public static Long indexOf(String source,
                              String target,
                              BigDecimal start,
                              boolean caseSensitive)

Do you remember what the problem was that originally prompted us opening this issue? Was it about having implementations that returned BigDecimal?

#8 Updated by Greg Shah almost 11 years ago

I have no idea. I'm sure I was just going off our estimate spreadsheet, based on some feedback you provided originally.

#9 Updated by Eric Faulhaber almost 11 years ago

  • Status changed from New to Closed

I can't determine that there is anything left to do here. Closing this issue accordingly.

#10 Updated by Greg Shah over 7 years ago

  • Target version changed from Milestone 7 to Runtime Support for Server Features

Also available in: Atom PDF