File: 02_PSQLException_JDK13.patch

package info (click to toggle)
libpgjava 8.2-504-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,600 kB
  • ctags: 4,442
  • sloc: java: 31,862; xml: 3,116; makefile: 18; sh: 10
file content (21 lines) | stat: -rw-r--r-- 805 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~	2005-11-24 03:29:23.000000000 +0100
+++ org/postgresql/util/PSQLException.java.in	2007-01-06 15:16:39.000000000 +0100
@@ -22,7 +22,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);
 
     }
 
@@ -70,7 +71,7 @@
     }
 
     // Dummy initCause() for pre-1.4 JVMs
-    @NOINITCAUSE@ public void initCause(Throwable cause) {
+    @NOINITCAUSE@ public void initCauseA(Throwable cause) {
         @NOINITCAUSE@ }