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.

Bug 239370

Summary: Failing ScriptingCreateFromTemplateTest on JDK8 and Windows
Product: platform Reporter: Jiri Skrivanek <jskrivanek>
Component: TemplatesAssignee: Martin Entlicher <mentlicher>
Status: VERIFIED FIXED    
Severity: normal Keywords: JDK_8, JDK_SPECIFIC, TEST
Priority: P1    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2013-12-11 13:41:57 UTC
Please, fix test failing on JDK8 and Windows only

org.netbeans.modules.templates.ScriptingCreateFromTemplateTest.testFreeFileExtension

To reproduce:

ant -f openide.loaders test-unit -Dtest.includes=**/ScriptingCreateFromTemplateTest.class

http://test4u.cz.oracle.com/view/StableBTD/job/StableBTD-trunk/lastCompletedBuild/testReport/
Comment 1 Martin Entlicher 2013-12-11 16:51:53 UTC
It's possible that they changed \n to the platform-specific line separator in Nashorn, which made it to fail on Windows.
Comment 2 Martin Entlicher 2013-12-11 21:49:46 UTC
Should be fixed by changeset:   269224:02d8f1bc8908
http://hg.netbeans.org/core-main/rev/02d8f1bc8908
Comment 3 Quality Engineering 2013-12-13 02:51:44 UTC
Integrated into 'main-silver', will be available in build *201312130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/02d8f1bc8908
User: mentlicher@netbeans.org
Log: #239370: Use platform-specific line separator when Nashorn engine is used.