Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/Truffle.java @ 21959:3e7fc5f743ed
Don't print stack trace when falling back to DefaultTruffleRuntime.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Wed, 17 Jun 2015 13:39:26 -0700 |
parents | 9c8c0937da41 |
children | d5d416ced577 |
comparison
equal
deleted
inserted
replaced
21958:ef8c90391f1e | 21959:3e7fc5f743ed |
---|---|
58 Class<?> servicesClass = null; | 58 Class<?> servicesClass = null; |
59 try { | 59 try { |
60 servicesClass = Class.forName("com.oracle.jvmci.service.Services"); | 60 servicesClass = Class.forName("com.oracle.jvmci.service.Services"); |
61 } catch (ClassNotFoundException e) { | 61 } catch (ClassNotFoundException e) { |
62 // JVMCI is unavailable | 62 // JVMCI is unavailable |
63 e.printStackTrace(); | |
64 } catch (IllegalArgumentException ex) { | 63 } catch (IllegalArgumentException ex) { |
65 throw new IllegalStateException("jvmci service found but yields error", ex); | 64 throw new IllegalStateException("jvmci service found but yields error", ex); |
66 } | 65 } |
67 if (servicesClass != null) { | 66 if (servicesClass != null) { |
68 try { | 67 try { |