jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-73

problem when field and method with same name

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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.

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. JRUBY-778 basic Swing usage causes SystemStackError

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is superceded by

Bug - A problem which impairs or prevents the functions of the product. JRUBY-814 Multiple improvements to Java integration (was: Java method get lost.)

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 27/Sep/06 7:35 PM

Related to JRUBY-29

Show
Charles Oliver Nutter added a comment - 27/Sep/06 7:35 PM Related to JRUBY-29
Hide
Permalink
Charles Oliver Nutter added a comment - 20/Apr/07 12:06 AM

Bill's patch for JRUBY-814 will fix this bug.

Show
Charles Oliver Nutter added a comment - 20/Apr/07 12:06 AM Bill's patch for JRUBY-814 will fix this bug.
Hide
Permalink
Charles Oliver Nutter added a comment - 20/Apr/07 1:20 PM

This will be fixed when we commit the JRUBY-814 patch some time today. Watch that bug for updates.

Show
Charles Oliver Nutter added a comment - 20/Apr/07 1:20 PM This will be fixed when we commit the JRUBY-814 patch some time today. Watch that bug for updates.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Bauduin Raphael
Vote (0)
Watch (0)

Dates

  • Created:
    09/Aug/06 2:57 AM
    Updated:
    30/Apr/07 3:11 AM
    Resolved:
    20/Apr/07 1:20 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.