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

Key: JRUBY-2802
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Evan Light
Votes: 0
Watchers: 0
Operations

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

JRuby wrapped Java objects formerly exposed readers for non-public fields

Created: 14/Jul/08 05:36 PM   Updated: Monday 06:26 PM
Component/s: Java Integration
Affects Version/s: JRuby 1.1.2
Fix Version/s: None

Time Tracking:
Not Specified

Environment: This is in trunk (rev 7169)


 Description  « Hide
fields/access_spec.rb fails if the fixtures PrivateField, PackageField, and ProtectedField have their getStrField getters removed. Believe that JRuby previously generated field getters for non-public Fields on Java object instances. Believe this is a regression; however, uncertain when it occurred.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Bill Dortch - 14/Jul/08 08:41 PM
As far as I recall (and diff-ing JavaClass back to the 1.0 release time-frame), non-public fields have never been exposed. If they ever were, it would have been very long ago. JavaClass#initializeClass calls (and has long called) Class#getFields, which returns only accessible public fields.

Charles Oliver Nutter - 25/Aug/08 06:26 PM
If it's true we never exposed non-public fields we could repurpose this as an RFE. Not going to be in 1.1.4 though.