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 77671

Summary: "Recursive rule detected"
Product: contrib Reporter: Jesse Glick <jglick>
Component: JackpotAssignee: _ tball <tball>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2006-06-10 00:24:11 UTC
Got an error message for part of a rule file that I can't decipher:

"Recursive rule detected at line ..."

pointing to the "=>" in

org.openide.filesystems.Repository.getDefault().findResource($r)
=>
org.openide.filesystems.Repository.getDefault().getDefaultFileSystem().findResource($r)
::
$r instanceof java.lang.String;

I can't see how this could be interpreted as recursive but Jackpot doesn't seem
to like it.
Comment 1 _ tball 2006-06-10 00:56:18 UTC
I don't see how it's recursive either, but there may be another issue.  What you
are really seeing is that the method frame depth for the transformer exceeded a
built-in max, which is normally caused by recursive rules (the error points to
the rule being matched in the offending frame).  I'll need to break at the
exception creation to see what the problem is, as the rule looks fine.

Is this rule part of a larger file?  
Comment 2 Jesse Glick 2006-06-10 02:15:58 UTC
Yes, part of a larger file. (But the rest of the file seemed to work, more or
less.) See filesystems.rules in apisupport/jackpotrules.
Comment 3 Jesse Glick 2010-04-27 18:41:14 UTC
The old Jackpot module is no longer maintained. There is a rewrite in progress at: http://bitbucket.org/jlahoda/jackpot30/wiki/Home