JDK-5055918 : Tiger-beta: Rollback the changes for fix 4926566
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-06-01
  • Updated: 2017-05-16
  • Resolved: 2004-06-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b56Fixed
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-rc FIXED IN: tiger-rc INTEGRATED IN: tiger-b56 tiger-rc
19-09-2004

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
01-06-2004