# Visibility error after 1.0.2 update

**URL:** <https://discuss.kotlinlang.org/t/visibility-error-after-1-0-2-update/1681>\
**Category:** Support\
**Created:** [May 18, 2016, 1:12pm UTC](https://discuss.kotlinlang.org/t/visibility-error-after-1-0-2-update/1681 "2016-05-18T13:12:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fvasco](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/fvasco/32/1961_2.png) [@fvasco](https://discuss.kotlinlang.org/u/fvasco)\
**Post date:** [May 18, 2016, 1:12pm UTC](https://discuss.kotlinlang.org/t/visibility-error-after-1-0-2-update/1681/1 "2016-05-18T13:12:35Z")

</div>

In my project Pinpoi ([GitHub - fvasco/pinpoi: Import and manage point of interest](https://github.com/fvasco/pinpoi)) switch Kotlin version from 1.0.1-2 (e8142d7) to 1.0.2 (0d7e676) causes a compilation error.  
Kotlin 1.0.2 raises visibility error on protected method.

```
e: .../pinpoi/importer/KmlImporter.kt: (40, 42): Cannot access 'configureFrom': it is 'protected' in 'AbstractImporter'
e: .../pinpoi/importer/ZipImporter.kt: (27, 30): Cannot access 'configureFrom': it is 'protected' in 'AbstractImporter'
e: .../pinpoi/importer/ZipImporter.kt: (28, 30): Cannot access 'importImpl': it is 'protected' in 'AbstractImporter'

```

What is the error?  
No visibility for protected methods in same package?

Thanks,  
Vasco

---

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [May 18, 2016, 2:19pm UTC](https://discuss.kotlinlang.org/t/visibility-error-after-1-0-2-update/1681/2 "2016-05-18T14:19:04Z")

</div>

Yes. The possibility to call protected methods on unrelated classes declared in the same package was never part of Kotlin’s design, and this was possible in pre-1.0.2 versions only because of missing checks in the compiler. The checks have now been implemented as designed, so such code is no longer valid.

---

<div class="post-metadata">

**Author:** ![fvasco](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/fvasco/32/1961_2.png) [@fvasco](https://discuss.kotlinlang.org/u/fvasco)\
**Post date:** [May 18, 2016, 3:06pm UTC](https://discuss.kotlinlang.org/t/visibility-error-after-1-0-2-update/1681/3 "2016-05-18T15:06:00Z")

</div>

Great job!

Thanks for quick response.  
Vasco
