Hi all,

I'm having an issue with javaCast(). I have a small custom captcha tag that 
loops over text to generate the image. We use the java libraries for it. 
This works fine in ACF.

My problem happens when the character that I'm testing/writing to the image 
is a numeral rather than a letter. I'm using a 
BufferedImage.createGraphics(), and setting a
new font for each letter and then test getFont().canDisplay() for that 
character. the line looks like:

while(NOT graphics.getFont().canDisplay(JavaCast("String",strChar))) { 
...set a new, different font... }

When strChar contains "w" for example, it works perfectly. When strChar 
contains "3" it errors with the following message:

"Method canDisplay is ambiguous as there is more than one method that could 
correspond to the provided argument types. If possible, use 'javacast()' to 
resolve this ambiguity."

Well ... I'm using javaCast() ... it just simply seems to refuse to cast 
the numeral to a string of the number. Any ideas on what I can do to 
resolve this?
Again, the code works fine (for numeral characters or string characters) on 
the ACF box.

Thanks for any help.

Alan

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to