This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There's something wrong with your default build process - valid multiline strings fail to compile. Failing test case: Main program - package testgroovybug; public class TestGroovyBug { public static void main(String[] args) { System.out.println(Test.TEST); } } Groovy Class - package testgroovybug class Test { public static final String TEST = """ test test """ } Note that removing the keyword "String" from the Groovy class results in a working program. Also, note that this code works in the GroovyConsole, as well as IntelliJ.
Mm, that's weird, this works for me just fine. Could you please try to reproduce the problem with the latest daily build [1]? [1] http://bits.netbeans.org/download/trunk/nightly/latest/
Yep, it's fixed in the nightly, though gosh there sure are a lot of other bugs with Groovy in that nightly. I strongly urge you to turn this into a test though: there's enough other stuff broken in that build that I don't have confidence that this won't regress when those bugs are fixed before ship.
Could you be a little more specific about those issues you are describing? I'm not aware about some regressions so cannot do much without some descriptions :/
There were a couple major bugs, which seemed to be related to compiling Groovy. When I get a chance, I'll file them, sice you don't seem to be aware of them. But as I remember them, one was an existing project (mixed Java/Groovy) where e Java couldn't see methods defined in Groovy, the second was a Groovy program which out the previous version's output, when run. Since both seemed similar to the build problem I reported with 3 quote, I was concerned.
Thanks, that would be great!
As a followup, I'm unable to reproduce the problems I was going to look into with the latest nightly (I've also updated the JDK in the meantime as well, so who knows what was going on there). So, one less thing for you to worry about.
(In reply to comment #7) > As a followup, I'm unable to reproduce the problems I was going to look into > with the latest nightly (I've also updated the JDK in the meantime as well, so > who knows what was going on there). > > So, one less thing for you to worry about. Ok, thank you anyway!