Compare commits

...

3 Commits
2090 ... 419

Author SHA1 Message Date
Anton Tarasov
8724b77dbb JBR-1770 [windows] frame does not open as maximized
(cherry picked from commit d9dfc3c6c5)
2019-08-21 14:49:06 +03:00
Egor Ushakov
5898ba9461 JBR-1655 Disable "WARNING: An illegal reflective access operation has occurred" - use property jdk.module.illegalAccess.silent
(cherry picked from commit c959b23697)
2019-08-19 11:16:57 +03:00
Vitaly Provodin
ea904e3c20 updated JTreg exclude list
(cherry picked from commit bdd644eaac)
2019-08-16 09:46:28 +07:00
4 changed files with 24 additions and 2 deletions

View File

@@ -71,6 +71,10 @@ public final class IllegalAccessLogger {
* Prints warnings and a stack trace when illegal access succeeds
*/
DEBUG,
/**
* No warnings when illegal access succeeds
*/
SILENT
}
/**
@@ -123,7 +127,9 @@ public final class IllegalAccessLogger {
public void complete() {
Map<Module, Set<String>> map1 = unmodifiableMap(moduleToConcealedPackages);
Map<Module, Set<String>> map2 = unmodifiableMap(moduleToExportedPackages);
logger = new IllegalAccessLogger(mode, warningStream, map1, map2);
if (mode != Mode.SILENT) {
logger = new IllegalAccessLogger(mode, warningStream, map1, map2);
}
complete = true;
}
}

View File

@@ -734,6 +734,12 @@ public final class ModuleBootstrap {
return;
}
}
// Silence warnings completely if requested explicitly
if (System.getProperty("jdk.module.illegalAccess.silent") != null) {
mode = IllegalAccessLogger.Mode.SILENT;
}
IllegalAccessLogger.Builder builder
= new IllegalAccessLogger.Builder(mode, System.err);

View File

@@ -1453,6 +1453,16 @@ void AwtFrame::__SetState(AwtFrame* f, int state, float factorX, float factorY)
f->setIconic(iconify);
f->setZoomed(zoom);
// [tav] With custom decor enabled, MS Win will send WM_SIZE msg w/o SIZE_MAXIMIZED param set
// before the frame will be shown. The msg handler will drop the maximized state in response.
// In order to prevent that, we set the maximized state on the native frame in advance.
if (zoom && f->HasCustomDecoration()) {
WINDOWPLACEMENT wp;
::GetWindowPlacement(f->GetHWnd(), &wp);
wp.showCmd = SW_SHOWMAXIMIZED;
::SetWindowPlacement(f->GetHWnd(), &wp);
}
}
}
}

View File

@@ -1065,7 +1065,7 @@ javax/swing/plaf/basic/BasicComboBoxEditor/Test8015336.java
javax/swing/plaf/basic/BasicComboPopup/JComboBoxPopupLocation/JComboBoxPopupLocation.java 8194945 macosx-all,linux-all,windows-all
javax/swing/plaf/basic/BasicGraphicsUtils/8132119/bug8132119.java 8196434 linux-all,solaris-all
javax/swing/plaf/basic/BasicHTML/4251579/bug4251579.java 8198905,8137101 macosx-all,windows-all,linux-all
javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java 8042383 macosx-all,windows-all
javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java 8042383 macosx-all,windows-all,linux-all
javax/swing/plaf/basic/BasicTextUI/8001470/bug8001470.java 8196098 windows-all,linux-all
javax/swing/plaf/basic/BasicTreeUI/8023474/bug8023474.java 8172887 windows-all
javax/swing/plaf/basic/Test6984643.java 8198340 windows-all