Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 0.9.9
-
Component/s: Java Integration
-
Labels:None
-
Environment:Ubuntu, Sun JDK 5
Description
I'm
evaluating JRuby to generate PDFs with iText
(http://www.lowagie.com/iText/) and trying to translate the java
helloworld at http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/HelloWorld.java
to jruby.
I got stuck at step 3:
document.open();
The API documentation shows that the Document instance has both a
field and method named open
(http://itextdocs.lowagie.com/docs/com/lowagie/text/Document.html )
and when I call document.open in jruby, I always get false returned.
Solution, from Charles: do not provide the shortcut property-style accessors when they shadow a real method.
Related to
JRUBY-29JRUBY-29