Closed Bug 212395 Opened 22 years ago Closed 21 years ago

Bad Flag field assignment in javascript.regexp.NativeRegExp

Categories

(Rhino Graveyard :: Core, defect)

All
Other
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: olivier.oeuillot, Assigned: rogerl)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Build Identifier: org.mozilla.javascript.regexp.NativeRegExp public void init(Context cx, Scriptable scope, String str, String global, boolean flat) { ..... this.parenCount = state.parenCount; this.flags = flags; <<<<<<<< NO effect ! this.lastIndex = 0; .... } Solution ? : public void init(Context cx, Scriptable scope, String str, String global, boolean flat) { this.source = str.toCharArray(); int length = str.length(); int flags = 0; <<<<< int declaration ! Reproducible: Always Steps to Reproduce: 1. 2. 3.
Assigning this one to Roger -
Assignee: nboyd → rogerl
Summary: Bad Flag field assignment → Bad Flag field assignment in javascript.regexp.NativeRegExp
I committed the fix.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Rubber-stamp vrfy -
Status: RESOLVED → VERIFIED
Trageting as resolved against 1.5R5
Target Milestone: --- → 1.5R5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: