Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313583

Summary: Null Password when logging in on IBM VM on Linux
Product: z_Archived Reporter: Peter Krogh <peter.krogh>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: michael.f.obrien, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
URL: http://fisheye2.atlassian.com/changelog/eclipselink/?cs=7272
Whiteboard:
Attachments:
Description Flags
rev 7272: super.getProperty() on java.util.Properties override fails with null on IBM JVM (non-windows OS) none

Description Peter Krogh CLA 2010-05-19 13:17:27 EDT
The issue stems from the fact that EclipseLink extends the java.util.Properties class with it's own NonSynchronizedProperties class.  

One methos getProperty(key, defaultValue) was not overridden properly.  On the SUN VM and the IBM VM on most OSs this didn't cause a problem as ultimately one of the methods that was overridden was called.

However, on the IBM VM on linux, the correct method is not called.
Fix:
    @Override
    public String getProperty(String key, String defaultValue) {
        String val = getProperty(key);
        return (val == null) ? defaultValue : val;
    }
Comment 1 Tom Ware CLA 2010-06-07 14:25:54 EDT
Setting target and priority.  See the following page for details of the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 Michael OBrien CLA 2010-06-11 10:23:49 EDT
>See SVN rev# 7272 for EclipseLink 2.0.1 on 20 May 2010
http://fisheye2.atlassian.com/changelog/eclipselink/?cs=7272
Comment 3 Michael OBrien CLA 2010-06-11 10:40:49 EDT
Created attachment 171732 [details]
rev 7272: super.getProperty() on java.util.Properties override fails with null on IBM JVM (non-windows OS)
Comment 4 Michael OBrien CLA 2010-06-14 09:18:20 EDT
*** Bug 316602 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:33:31 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink