History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-441
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Thomas E Enebo
Reporter: Charles Oliver Nutter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

Java integration code does not report errors well

Created: 15/Jan/07 01:00 PM   Updated: 12/May/08 01:04 PM
Component/s: Java Integration
Affects Version/s: JRuby 0.9.0, JRuby 0.9.1, JRuby 0.9.2, JRuby 0.9.8, JRuby 1.0.0RC1, JRuby 0.9.9, JRuby 1.0.0RC2
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. File better_constructor_failure_notice.diff (0.7 kb)
2. File SwingException.diff (0.8 kb)
3. File SwingException.rb (0.6 kb)



 Description  « Hide
Java support has numerous places it could have additional error information on failure, including when constructor logic fails or when a proxied class contains method names that conflict with Ruby methods.

Attach patches and test cases here, we'll keep this open for a while to gather fixes and close those issues as a group.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Wayne Meissner - 15/Jan/07 04:51 PM
SwingException.rb & SwingException.diff are a test case & possible patch for the case where ruby code is called from the swing EDT and any ruby exceptions/errors are lost.

Overriding RaiseException.toString() to print out the ruby backtrace is similar to what jython does, but it also goes against the description of Throwable.toString() as being a short description of the Exception.


Ricardo Trindade - 16/Jan/07 12:55 PM
Found what I believe is a bug related to this one :

This works :

[1,2,3][1..-1]

This doesn't :

LinkedList.new([1,2,3])[1..-1]

Nick Sieger's comment :

This seems like a Java integration issue, that the Java list isn't appropriately getting wrapped with Ruby array behavior. But, I'm not sure that it was ever meant to, so it could be a case of a missing feature. Could you add a comment to JRUBY-441?


Nolan Darilek - 16/Jan/07 12:56 PM
This patch causes the class on which constructors aren't found to be displayed in the exception message. Currently the exception merely reports that no constructors were found.


Charles Oliver Nutter - 16/May/07 05:00 PM
Bumping to 1.0 again...and this is in danger of falling off 1.0. If there's no additional patches for errors we'll just go with what we have and call this "done" enough for now. But I don't want to add this in RC2 right now.

Charles Oliver Nutter - 21/May/07 03:48 PM
Bumping to 1.x. The only patch provided for this doesn't apply cleanly anymore, and there's been a lot of rework for Java integration since this bug was reported. So I think it needs to be reexamined, and the final RC cycle doesn't seem like the right time to do it.

Charles Oliver Nutter - 30/Sep/07 10:40 AM
We should finally resolve this in 1.1, either with stock JI and better error handling or with Bill's new uberintegration.

Charles Oliver Nutter - 15/Feb/08 12:55 PM
Removing target release from issues that fit any of the following criteria:
  • No known way to fix them
  • Java integration enhancements out of scope for 1.1 release
  • Other out of scope issues for 1.1