Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313583 - Null Password when logging in on IBM VM on Linux
Summary: Null Password when logging in on IBM VM on Linux
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://fisheye2.atlassian.com/changel...
Whiteboard:
Keywords:
: 316602 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-19 13:17 EDT by Peter Krogh CLA
Modified: 2022-06-09 10:33 EDT (History)
2 users (show)

See Also:


Attachments
rev 7272: super.getProperty() on java.util.Properties override fails with null on IBM JVM (non-windows OS) (746 bytes, patch)
2010-06-11 10:40 EDT, Michael OBrien CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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