aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-07-28 00:46:06 +0200
committerSven Gothel <[email protected]>2015-07-28 00:46:06 +0200
commit63331d5da80f66753442fe651f517b3540b517ce (patch)
treedc0ccfe74a63bb51854df98c062bd78a7c2ea4f6
parent4eeddd0d446f8491dde2e5b0e3e11e0d5b0be9b7 (diff)
JAWTWindow: Fix binary compatibility: Add old variants of deprecated method, throwing a RuntimeException
-rw-r--r--make/scripts/tests.sh4
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java14
2 files changed, 16 insertions, 2 deletions
diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh
index 88d3626cf..8c758cf6b 100644
--- a/make/scripts/tests.sh
+++ b/make/scripts/tests.sh
@@ -409,7 +409,7 @@ function testawtswt() {
#testnoawt com.jogamp.opengl.test.junit.jogl.acore.TestGLProfile02NEWTNoARBCtx $*
#testnoawt com.jogamp.opengl.test.junit.jogl.acore.TestGLProfile03NEWTOffscreen $*
#testnoawt com.jogamp.opengl.test.junit.jogl.acore.TestGLProfile04NEWTOffscreenNoARBCtx $*
-#testawt com.jogamp.opengl.test.junit.jogl.acore.TestVersionSemanticsNOUI $*
+testawt com.jogamp.opengl.test.junit.jogl.acore.TestVersionSemanticsNOUI $*
#
# Stereo
@@ -423,7 +423,7 @@ function testawtswt() {
#testawt com.jogamp.opengl.test.junit.jogl.demos.es2.awt.TestGearsES2GLJPanelAWT $*
#testawt com.jogamp.opengl.test.junit.jogl.demos.es2.awt.TestGearsES2AWT $*
#testawt com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestGearsES2NewtCanvasAWT $*
-testawt com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsAWT $*
+#testawt com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsAWT $*
#testnoawt com.jogamp.opengl.test.junit.jogl.glsl.TestRulerNEWT01 $*
#testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUUISceneNewtDemo $*
#testawt com.jogamp.opengl.test.junit.graph.demos.GPUUISceneNewtCanvasAWTDemo $*
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java
index 294e57bd3..5d84325de 100644
--- a/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java
+++ b/src/nativewindow/classes/com/jogamp/nativewindow/awt/JAWTWindow.java
@@ -403,6 +403,20 @@ public abstract class JAWTWindow implements NativeWindow, OffscreenLayerSurface,
}
/**
+ * @deprecated Use {@link #updateLockedData(JAWT_Rectangle, GraphicsConfiguration)}.
+ */
+ protected final boolean updateLockedData(final JAWT_Rectangle jawtBounds) {
+ throw new RuntimeException("Invalid API entry");
+ }
+ /**
+ * @deprecated Use {@link #lockSurfaceImpl(GraphicsConfiguration)}
+ */
+ protected int lockSurfaceImpl() throws NativeWindowException {
+ throw new RuntimeException("Invalid API entry");
+ }
+
+
+ /**
* Returns and clears the {@code hasPixelScaleChanged} flag, as set via {@link #lockSurface()}.
* <p>
* {@code hasPixelScaleChanged} is {@code true},