Commit 3b9696a
mgricken
Bugfix for 3008828: throw null
http://sourceforge.net/tracker/index.php?func=detail&aid=3008828&group_id=44253&atid=438935
Fixed in DynamicJava:
As per Java Language Specification (JLS):
http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.18
"If evaluation of the Expression completes normally, producing a null
value, then an instance V of class NullPointerException is created and
thrown instead of null."
M dynamicjava/src/edu/rice/cs/dynamicjava/interpreter/StatementEvaluator.java
M drjava/lib/dynamicjava-base.jar
M drjava/src/edu/rice/cs/drjava/model/repl/JavaInterpreterTest.java
git-svn-id: file:///tmp/test-svn/trunk@5261 fe72c1cf-3628-48e9-8b72-1c46755d3cff1 parent 01be6f1 commit 3b9696a
File tree
3 files changed
+29
-0
lines changed- drjava
- lib
- src/edu/rice/cs/drjava/model/repl
- dynamicjava/src/edu/rice/cs/dynamicjava/interpreter
3 files changed
+29
-0
lines changedBinary file not shown.
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
558 | 578 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
308 | 317 | | |
309 | 318 | | |
310 | 319 | | |
| |||
0 commit comments