File: 02_PSQLException_JDK13.patch

package info (click to toggle)
libpgjava 8.1-405-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,484 kB
  • ctags: 4,266
  • sloc: java: 32,071; xml: 3,017; sql: 21; makefile: 18; sh: 10
file content (21 lines) | stat: -rw-r--r-- 879 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- org/postgresql/util/PSQLException.java.in.orig	2005-06-24 19:47:01.000000000 +0200
+++ org/postgresql/util/PSQLException.java.in	2005-06-24 19:47:41.000000000 +0200
@@ -21,7 +21,8 @@
     public PSQLException(String msg, PSQLState state, Throwable cause)
     {
         super(addCauseToMessage(msg, cause), state == null ? null : state.getState());
-        initCause(cause); // Calls either the 1.4 Throwable impl or our impl below.
+        @NOINITCAUSE@ initCauseA(cause); // Calls either the 1.4 Throwable impl or our impl below.
+        @INITCAUSE@ initCause(cause);
         if (Driver.logDebug)
             Driver.debug("Exception: " + this);
 
@@ -60,7 +61,7 @@
     }
 
     // Dummy initCause() for pre-1.4 JVMs
-    @NOINITCAUSE@ public void initCause(Throwable cause) {
+    @NOINITCAUSE@ public void initCauseA(Throwable cause) {
         @NOINITCAUSE@ }