Completion doesn't take accessibility from the use-site into account
Migrated from http://lampsvn.epfl.ch/trac/scala/ticket/2572
Reporter jukz
using Eclipse 3.5.1 scala plugin 2.7.7.final, Windows XP
The plugin suggests the use of members that are not accesible.
I dont know wheter the plugin, the compiler or both are defect. But they are not consistent.
example:
Reporter jukz
using Eclipse 3.5.1 scala plugin 2.7.7.final, Windows XP
The plugin suggests the use of members that are not accesible.
I dont know wheter the plugin, the compiler or both are defect. But they are not consistent.
example:
class one (a:Double) {
var x=a
def twice()={
x=a*2
}
def print(){
println(x)
}
}
class two (z:Int,b:Int) extends one(z) {
override def twice()={
//x=a //does not compile but
//x=this.a // is within the syntax completion in the eclipse plugin
x=z
x=b
}
}
object t1 extends Application {
var a1:one=new one(2)
a1.print
a1.twice
a1.print
//println( a1.a) // does not compile but is within the syntax completion in the eclipse plugin
var a2:two=new two(2,3)
a2.print
a2.twice
a2.print
//println( a2.b) // does not compile but is within the syntax completion in the eclipse plugin
//println( a2.a) // does not compile but is within the syntax completion in the eclipse plugin
}
Leave a comment
on 2009-12-17 02:36 *
By
A form of this bug is still present on trunk.
on 2010-01-20 13:28 *
By tracImporter
Trac author: spiros
CC Change: sptz45@…
CC Change: sptz45@…
Updating tickets (#1000069, #1000195, #1000213, #1000223, #1000006, #1000021, #1000038, #1000048, #1000051, #1000052, #1000075, #1000103, #1000109, #1000115, #1000119, #1000156, #1000186, #1000207, #1000238, #1000262, #1000263, #380, #389, #683, #1238, #1331, #1635, #1645, #1715, #1729, #1744, #1783, #1839, #1869, #1885, #1890, #1902, #1918, #1919, #1924, #1925, #1946, #1964, #1991, #2131, #2233, #2342, #2348, #2408, #2459, #2499, #2523, #2572, #2582, #2602, #2614, #2615, #2675, #2710, #2745, #2763, #2816, #2830, #2834, #2878, #2879, #2887, #2888, #2901, #2911, #2912, #2922, #2937, #2938, #2942, #2951, #2955, #2957, #2961, #2964, #2965, #2974, #2975, #2989, #2990, #3002, #3055, #3070, #3087, #3135, #3139, #3173, #3182, #3184, #3200, #3213, #3214, #3221, #3243, #3251)
on 2012-01-23 06:25 *
By skyluc
Version set to 2.0.0-final-29
Eclipse version set to All
Assigned to changed from login to -none-
Component changed from None to Code Completion
Description changed from Migrated from http://lampsv... to Migrated from http://lampsv...
Permission type changed from None to Public
Status changed from New to Accepted
on 2012-12-14 05:38 *
By Mirco Dotta
Fixed in version set to 2.1.0-m3
Version changed from 2.0.0-final-29 to 2.0.2-final-29