ClassLoader issue when loading custom DSL with GroovyScriptEngine

2016-03-24 Thread Michael Rüegg
Hi, I have a problem with parsing my own DSL when using GroovyScriptEngine. Here’s the code: class DslLoader { def load(String dsl) { CompilerConfiguration config = new CompilerConfiguration(CompilerConfiguration.DEFAULT) config.scriptBaseClass = MyBaseScript.class.name ClassLoader p

Re: "Not handled exceptions" inspection?

2016-03-24 Thread Jochen Theodorou
On 23.03.2016 22:37, Libor Jelinek wrote: Hello Groovy community! Is there some tool like groovyc warning / IDEA inspections / CodeNarc that will report situation when some method declares exception but you (a method user) don't re-declare nor catch it. I find it extremely useful. Because if f

Re: "Not handled exceptions" inspection?

2016-03-24 Thread Schalk Cronjé
Checked exceptions remain a debatable point. Some people like them, some don't. A lot of viewpoints depends on the background of the specific people. There is no correct answer, however. On 24/03/2016 13:32, Jochen Theodorou wrote: On 23.03.2016 22:37, Libor Jelinek wrote: Hello Groovy comm

Re: "Not handled exceptions" inspection?

2016-03-24 Thread David Dawson
To take a different point of view. The debate was had, checked exceptions *lost*. Every language designed since Java was released and this was seen as a problem has explicitly removed checked exceptions. Go event went to the point of removing exceptions altogether. Checked exceptions mixed the pr