Skip to content

Commit 1149b80

Browse files
author
svn-role
committed
Merge r1935107 from trunk:
* r1935107 Fix a bug in JavaHL where native code could modify a final attribute. Votes: +1: brane, ivan git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.15.x@1936070 13f79535-47bb-0310-9956-ffa450edef68
1 parent 67a95d3 commit 1149b80

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

STATUS

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,3 @@ Veto-blocked changes:
5353

5454
Approved changes:
5555
=================
56-
57-
* r1935107
58-
Fix a bug in JavaHL where native code could modify a final attribute.
59-
Votes:
60-
+1: brane, ivan

subversion/bindings/javahl/src/org/apache/subversion/javahl/JNIObject.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,15 @@ public abstract class JNIObject
3131
* slot for the address of the native peer. The JNI code controls this
3232
* field. If it is set to 0 then underlying JNI object has been freed
3333
*/
34-
protected final long cppAddr;
34+
private long cppAddr = 0;
3535

3636
protected JNIObject(long cppAddr)
3737
{
3838
this.cppAddr = cppAddr;
3939
}
40+
41+
protected long getCppAddr()
42+
{
43+
return cppAddr;
44+
}
4045
}

0 commit comments

Comments
 (0)