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 242272 - Never ending cycle when the template has the same name as the binding.
Summary: Never ending cycle when the template has the same name as the binding.
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Knockout (show other bugs)
Version: 8.0
Hardware: PC Linux
: P1 normal (vote)
Assignee: Petr Hejl
URL:
Keywords: 8.0_HR_FIX
Depends on:
Blocks:
 
Reported: 2014-02-24 12:34 UTC by Petr Pisl
Modified: 2014-02-25 16:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2014-02-24 12:34:04 UTC
Have an html page with this snippet:

<script type="text/html" id="menuItemTemplate">
  <li data-bind="css: {'oj-disabled': item.disabled}">
    <a href="#" data-bind="text: name"></a>
    <!-- ko if: item.items -->
      <ul data-bind="template: {name: 'menuItemTemplate', foreach: item.items, as: 'item'}">
      </ul>
    <!-- /ko -->
  </li>
</script>

There is then never ending cycle in org.netbeans.modules.html.knockout.KOJsEmbeddingProviderPlugin.endProcessing()
method.
Comment 1 Petr Hejl 2014-02-24 13:35:06 UTC
Fixed in web-main 047f30e43d72.
Comment 2 Petr Pisl 2014-02-24 14:27:31 UTC
The fix was transplanted to the releases / release80.
Comment 3 Quality Engineering 2014-02-25 01:36:52 UTC
Integrated into 'releases/release80', will be available in build *201402242200* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/f76ff33aa53d
User: Petr Hejl <phejl@netbeans.org>
Log: #242272 - Never ending cycle when the template has the same name as the binding.
Comment 4 Quality Engineering 2014-02-25 02:45:10 UTC
Integrated into 'main-silver', will be available in build *201402250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/047f30e43d72
User: Petr Hejl <phejl@netbeans.org>
Log: #242272 - Never ending cycle when the template has the same name as the binding.
Comment 5 Vladimir Riha 2014-02-25 16:14:05 UTC
Verified in RC1, scanning finishes, syntax highlighting works as expected.

Product Version: NetBeans IDE 8.0 RC1 (Build 201402242200)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)