File tree 4 files changed +0
-20
lines changed
src/main/kotlin/org/t246osslab/easybuggy4kt/troubles
4 files changed +0
-20
lines changed Original file line number Diff line number Diff line change 1
1
package org.t246osslab.easybuggy4kt.troubles
2
2
3
- import org.springframework.beans.factory.annotation.Autowired
4
- import org.springframework.context.MessageSource
5
3
import org.springframework.stereotype.Controller
6
4
import org.springframework.web.bind.annotation.RequestMapping
7
5
import java.io.IOException
@@ -10,9 +8,6 @@ import javax.servlet.ServletException
10
8
@Controller
11
9
class ForwardLoopController {
12
10
13
- @Autowired
14
- internal var msg: MessageSource ? = null
15
-
16
11
@RequestMapping(value = " /forwardloop" )
17
12
@Throws(IOException ::class , ServletException ::class )
18
13
fun process (): String {
Original file line number Diff line number Diff line change 1
1
package org.t246osslab.easybuggy4kt.troubles
2
2
3
3
import org.slf4j.LoggerFactory
4
- import org.springframework.beans.factory.annotation.Autowired
5
- import org.springframework.context.MessageSource
6
4
import org.springframework.stereotype.Controller
7
5
import org.springframework.web.bind.annotation.RequestMapping
8
6
import javax.servlet.http.HttpServletRequest
9
7
10
8
@Controller
11
9
class InfiniteLoopController {
12
10
13
- @Autowired
14
- internal var msg: MessageSource ? = null
15
-
16
11
@RequestMapping(value = " /infiniteloop" )
17
12
fun process (req : HttpServletRequest ) {
18
13
while (true ) {
Original file line number Diff line number Diff line change 1
1
package org.t246osslab.easybuggy4kt.troubles
2
2
3
- import org.springframework.beans.factory.annotation.Autowired
4
- import org.springframework.context.MessageSource
5
3
import org.springframework.stereotype.Controller
6
4
import org.springframework.web.bind.annotation.RequestMapping
7
5
import sun.misc.Unsafe
@@ -11,9 +9,6 @@ import javax.servlet.http.HttpServletResponse
11
9
@Controller
12
10
class JVMCrashByEAVController {
13
11
14
- @Autowired
15
- internal var msg: MessageSource ? = null
16
-
17
12
private val unsafe: Unsafe
18
13
@Throws(NoSuchFieldException ::class , IllegalAccessException ::class )
19
14
get() {
Original file line number Diff line number Diff line change 1
1
package org.t246osslab.easybuggy4kt.troubles
2
2
3
- import org.springframework.beans.factory.annotation.Autowired
4
- import org.springframework.context.MessageSource
5
3
import org.springframework.stereotype.Controller
6
4
import org.springframework.web.bind.annotation.RequestMapping
7
5
import java.io.IOException
8
6
9
7
@Controller
10
8
class RedirectLoopController {
11
9
12
- @Autowired
13
- internal var msg: MessageSource ? = null
14
-
15
10
@RequestMapping(value = " /redirectloop" )
16
11
@Throws(IOException ::class )
17
12
fun process (): String {
You can’t perform that action at this time.
0 commit comments