aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs183/333066/Code.java
blob: 3504589bd6b773ecf304404dc34ea153c8e8e0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import java.util.*;

public class Code {
  public String getString()  {
    Optional<String> dummy = Optional.of("Just a dummy optional");
    return dummy.orElseThrow(() ->    {
      return new RuntimeException();
    });
  }
}

aspect X {
  before(): within(!X) {System.out.println(thisJoinPoint);}
}