@@ -69,16 +69,6 @@ public HadoopThread(ThreadGroup group, Runnable target, String name) {
69
69
this .hadoopTarget = target ;
70
70
}
71
71
72
- // @Override
73
- // public final void start() {
74
- // // This is temporary, to be replaced with JVM version dependent
75
- // // Subject.current() shim
76
- // AccessControlContext context = AccessController.getContext();
77
- // startSubject = Subject.getSubject(context);
78
- // super.start();
79
- // }
80
-
81
- // To be replaced with this in the next JDK24 patch:
82
72
@ Override
83
73
public final void start () {
84
74
startSubject = SubjectUtil .current ();
@@ -96,35 +86,6 @@ public void work() {
96
86
throw new IllegalArgumentException ("No Runnable was specified and work() is not overriden" );
97
87
}
98
88
99
- // @Override
100
- // public final void run() {
101
- // try {
102
- // // This is temporary, to be replaced with JVM version dependent shim code
103
- // Subject.doAs(startSubject, new PrivilegedExceptionAction<Void>() {
104
- //
105
- // @Override
106
- // public Void run() throws Exception {
107
- // if (hadoopTarget != null) {
108
- // hadoopTarget.run();
109
- // } else {
110
- // work();
111
- // }
112
- // return null;
113
- // }
114
- //
115
- // });
116
- // } catch (PrivilegedActionException ce) {
117
- // Exception t = ce.getException();
118
- // if (t instanceof RuntimeException) {
119
- // throw (RuntimeException) t;
120
- // } else {
121
- // throw new RuntimeException("Unexpected exception", t);
122
- // }
123
- // }
124
- // }
125
-
126
- // To replaced with this in the next patch:
127
-
128
89
@ Override
129
90
public final void run () {
130
91
SubjectUtil .doAs (startSubject , new PrivilegedAction <Void >() {
0 commit comments