United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5055918 Tiger-beta: Rollback the changes for fix 4926566
JDK-5055918 : Tiger-beta: Rollback the changes for fix 4926566

Details
Type:
Bug
Submit Date:
2004-06-01
Status:
Resolved
Updated Date:
2004-06-16
Project Name:
JDK
Resolved Date:
2004-06-16
Component:
client-libs
OS:
generic
Sub-Component:
java.awt
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (b56)

Related Reports

Sub Tasks

Description
I am currently tracking a defect with Eclipse that has to do with the positioning of an EmbeddedFrame. When you run Eclipse using an EmbeddedFrame in 1.5, the window is moved out from under you. The problem is that the Eclipse developer in charge of this feature is using JDK 1.4.2 and does not see the problem. I went into some of the source that I have cached off on my machine and found that there was a change made somewhere between build 20 and build 32 where C:\jdk15b32src\j2se\src\windows\native\sun\windows\awt_Frame.cpp was changed to remove the automatic setting of the location to be 0,0.  Here is the source for build 20:

/*
 * Override AwtComponent's Reshape to keep this frame in place if it is
 * an embedded 'frame'
 */
void AwtFrame::Reshape(int x, int y, int width, int height)
{
    if (IsEmbedded()) {
	x = y = 0;
    }
    AwtWindow::Reshape(x, y, width, height);
}


And here is the source for build 32:

/*
 * Override AwtComponent's Reshape to keep this frame in place if it is
 * an embedded 'frame'
 */
void AwtFrame::Reshape(int x, int y, int width, int height)
{
    AwtWindow::Reshape(x, y, width, height);
}



###@###.### 2004-06-01

                                    

Comments
EVALUATION


Name: osR10079			Date: 06/01/2004

Should fix this problem in Tiger.
###@###.###  June 2, 2004

======================================================================

This change has actually been done to all platforms. We should rollback this change from all of them, and provide private API to set location of EmbeddedFrame when necessary.
###@###.### 2004-06-01
                                     
2004-06-01
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-rc

FIXED IN:
tiger-rc

INTEGRATED IN:
tiger-b56
tiger-rc


                                     
2004-09-19



Hardware and Software, Engineered to Work Together