Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @ 18509:7bf2965140de
Truffle: Node#clone(): throw assertion error on CloneNotSupportedException
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Tue, 25 Nov 2014 13:21:38 +0100 |
parents | 65a160d9d259 |
children | 8a758dce7d80 |
comparison
equal
deleted
inserted
replaced
18508:f56a5c4cd859 | 18509:7bf2965140de |
---|---|
381 */ | 381 */ |
382 public Node copy() { | 382 public Node copy() { |
383 try { | 383 try { |
384 return (Node) super.clone(); | 384 return (Node) super.clone(); |
385 } catch (CloneNotSupportedException e) { | 385 } catch (CloneNotSupportedException e) { |
386 return null; | 386 throw new AssertionError(e); |
387 } | 387 } |
388 } | 388 } |
389 | 389 |
390 /** | 390 /** |
391 * This method must never be called. It enforces that {@link Object#clone} is not directly | 391 * This method must never be called. It enforces that {@link Object#clone} is not directly |