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 234511

Summary: Make OQL engine work with Nashorn
Product: profiler Reporter: AlexanderIoffe
Component: BaseAssignee: issues@profiler <issues>
Status: REOPENED ---    
Severity: normal CC: jskrivanek
Priority: P2 Keywords: JDK_8, JDK_SPECIFIC, TEST
Version: 7.3.1   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 234180    
Bug Blocks:    

Description AlexanderIoffe 2013-08-16 17:51:00 UTC
I did run of NB 7.3.1 tests on JDK 8
13 OQLEngineTest tests fail with some error from Nashorn

List of failed tests:
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testComplexStatement1
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testComplexStatement2
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testCount
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testHeapForEachClass
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testHeapForEachObject
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testMap
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testMultivalue
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testSubclasses
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testSuperlasses
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testUnwrapIterator
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testUnwrapIteratorComplex
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testforEachReferee
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest::testforEachReferrer
Comment 1 AlexanderIoffe 2013-08-16 17:52:25 UTC
Contact me by email to get more info.
Since results contain closed code which can not be pasted into open comments
Comment 2 AlexanderIoffe 2013-08-16 17:57:41 UTC
JDK issue:
https://jbs.oracle.com/bugs/browse/INTJDK-7605694
Comment 3 AlexanderIoffe 2013-08-16 18:03:38 UTC
More tests:

org.netbeans.modules.templates.ScriptingCreateFromTemplateTest::testCreateFromTemplateEncodingProperty
Comment 4 Marian Mirilovic 2013-08-23 10:10:20 UTC
Please evaluate ASAP. These are tests failing with new JDK 8 builds. Thanks in advance.
Comment 5 Petr Cyhelsky 2013-08-23 15:24:03 UTC
The current status is that when running on jdk8 the OQL tab is not even shown and the whole functionality is thus unavailable. The Nashorn support is planned for next release of netbeans. If I understand it correctly the problem is with running Netbeans's binary test distribution. In this case the UI is bypassed and the OQL tests should not be run or their results simply ignored.
Comment 6 Petr Cyhelsky 2013-10-07 13:57:00 UTC

*** This bug has been marked as a duplicate of bug 234180 ***
Comment 7 Petr Cyhelsky 2013-10-08 08:50:12 UTC
correction, it is still not fixed fully - the issue #234180 was just a requisite for real fixes. first of them is http://hg.netbeans.org/profiler-main/rev/16df9adc8c83
Comment 8 Jiri Skrivanek 2013-12-11 12:40:06 UTC
Please, evaluate remaining failing tests

org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest.testMap
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest.testComplexStatement1
org.netbeans.modules.profiler.oql.engine.api.impl.OQLEngineTest.testComplexStatement2 

http://test4u.cz.oracle.com/view/StableBTD/job/StableBTD-trunk/lastCompletedBuild/testReport/
Comment 9 Quality Engineering 2013-12-12 02:59:16 UTC
Integrated into 'main-silver', will be available in build *201312120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b010dc7c7509
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #234511 - failing OQLEngineTest excluded temporarily.