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 160820

Summary: Rename doesn't work if val is lazy
Product: contrib Reporter: dug <dug>
Component: ScalaAssignee: _ dcaoyuan <dcaoyuan>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://itls.usu.edu/~dholton/pulpcore/scala/
Issue Type: DEFECT Exception Reporter:

Description dug 2009-03-22 16:53:37 UTC
If I have:

val somevar = ...

I can right-click and rename somevar just fine.

But if I have:

lazy val somevar = ...

Then if I right-click and select rename, it doesn't rename any of the other references.

I have a sample netbeans project here that uses lazy val's:
http://itls.usu.edu/~dholton/pulpcore/Scala-PulpCore-Netbeans.zip

The code that uses lazy vals is also under the applet on this page:  ('kid' and 'success')
http://itls.usu.edu/~dholton/pulpcore/scala/