JDK-6410256 : LTP: Possible backward incompatibility in DefaultPersistenceDelegate
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2006-04-07
  • Updated: 2011-01-19
  • Resolved: 2006-07-31
Related Reports
Relates :  
Relates :  
Description
Scott Violet wrote:

I think we should consider putting the code that dug out fields back :(
The important thing is none of our public API relies on it, so that you can persist any public classes in a sandbox without reflection hacks. Developers that want to use LTP to persist private fields, should be allowed to, assuming they have the right permissions.

Shannon Hickey wrote:

What do you think about reverting part of your change for compatibility reasons? That is, favor field access if you have the right permissions, otherwise use getters.

Comments
EVALUATION This bug is suspended.
27-04-2006

SUGGESTED FIX See attached webrev.
27-04-2006

EVALUATION I agree to return field access into DefaultPersistenceDelegate, but we should create the detailed documentation about this hack.
07-04-2006