Bugs

andrei.eremeev andrei.eremeev at oracle.com
Tue Mar 3 12:45:34 UTC 2015


Hi REPL team,

Bugs:
1. Runtime visible annotations cannot be retrieved. (See 
test.ClassMembersTest#testAnnotation())
2. IllegalArgumentException is not thrown by currentResolution when key 
is a snippet of another state:

     SnippetInfo info = assertEval1("class A { void f() {}}");
     EvalProcessing evalProcessing = EvalProcessing.create(new 
TestingInputStream(),
         new PrintStream(new ByteArrayOutputStream()),
         new PrintStream(new ByteArrayOutputStream()));
     try (EvalState state = evalProcessing.evalState()) {
         List<EvalResult> results = state.eval("class A { int f() { 
return 0; } }");
assertEquals(results.size(), 1, "Too much snippets");
         EvalResult result = results.get(0);
assertTrue(result.outcome.success, "Compilation failed");
         state.currentResolution(info.key());
     }

Andrei Eremeev


More information about the kulla-dev mailing list