Enums implementing interfaces -- Still in focus?

This really hurts me and all bug reprots are either "not reproducible"
or "not done".
IDEA simply "forgets" that the enum implements the interface. When
editing the file, it works. But after some time again all code gets
red.

Related issues:
http://www.jetbrains.net/jira/browse/IDEA-2249
http://www.jetbrains.net/jira/browse/IDEADEV-386
http://www.jetbrains.net/jira/browse/IDEA-4935
http://www.jetbrains.net/jira/browse/IDEA-470
...surly more...

6 comments

No I don't use retroweaver but we have a patched JDK.
But the error occurs no matter if this is used or not.

Marcus Brito schrieb:

Are you using Retroweaver? Check out my comments here:

http://www.jetbrains.net/jira/browse/IDEA-3491

0

Still looking at this. Having
public enum MyEnum implements MyInterface

In 'Show Structure' using 'Group methods by Defining Type' it shows:
MyEnum
MyInterface
Object
Comparable
...methods...

After reoping the project:
MyEnum
Object
Comparable
...methods...

So the implemented interface simply disappers.

Sven Steiniger schrieb:

No I don't use retroweaver but we have a patched JDK.
But the error occurs no matter if this is used or not.

Marcus Brito schrieb:

>> Are you using Retroweaver? Check out my comments here:
>>
>> http://www.jetbrains.net/jira/browse/IDEA-3491

0

This is really not reproducible on clean project.
Could you please send me your project along with your repository caches?

Eugene.

"Sven Steiniger" <sven.steiniger@gmx.de> wrote in message
news:djldh4$tk4$1@is.intellij.net...

Still looking at this. Having
public enum MyEnum implements MyInterface

>

In 'Show Structure' using 'Group methods by Defining Type' it shows:
MyEnum
MyInterface
Object
Comparable
...methods...

>

After reoping the project:
MyEnum
Object
Comparable
...methods...

>

So the implemented interface simply disappers.

>

Sven Steiniger schrieb:

No I don't use retroweaver but we have a patched JDK.
But the error occurs no matter if this is used or not.

>

Marcus Brito schrieb:

>
>> Are you using Retroweaver? Check out my comments here:
>>
>> http://www.jetbrains.net/jira/browse/IDEA-3491



0

Sorry Eugene, the project is simply too huge and I can't reproduce this
on a simple testcase.
I have the plugin development running, so I can debug IDEA some how.
If you could gave me an advice where I should set some breakpoints I
would sit down and do it, as the bug is really annoying.

Eugene Vigdorchik (JetBrains) schrieb:

This is really not reproducible on clean project.
Could you please send me your project along with your repository caches?

Eugene.

"Sven Steiniger" <sven.steiniger@gmx.de> wrote in message
news:djldh4$tk4$1@is.intellij.net...

>>Still looking at this. Having
>> public enum MyEnum implements MyInterface
>>
>>In 'Show Structure' using 'Group methods by Defining Type' it shows:
>> MyEnum
>> MyInterface
>> Object
>> Comparable
>> ...methods...
>>
>>After reoping the project:
>> MyEnum
>> Object
>> Comparable
>> ...methods...
>>
>>So the implemented interface simply disappers.
>>
>>Sven Steiniger schrieb:
>>
>>>No I don't use retroweaver but we have a patched JDK.
>>>But the error occurs no matter if this is used or not.
>>>
>>>Marcus Brito schrieb:
>>>
>>>
>>>>Are you using Retroweaver? Check out my comments here:
>>>>
>>>>http://www.jetbrains.net/jira/browse/IDEA-3491


0

Sven,
I'm afraid the problem could be only deep inside the PSI implementation,
that is simply far from openapi.
Anyway I'm going to set up some enums implementing interfaces in our project
and see if I can eventually reproduce it.

Eugene.

"Sven Steiniger" <sven.steiniger@gmx.de> wrote in message
news:djndt0$tae$1@is.intellij.net...

Sorry Eugene, the project is simply too huge and I can't reproduce this
on a simple testcase.
I have the plugin development running, so I can debug IDEA some how.
If you could gave me an advice where I should set some breakpoints I
would sit down and do it, as the bug is really annoying.

>

Eugene Vigdorchik (JetBrains) schrieb:

>> This is really not reproducible on clean project.
>> Could you please send me your project along with your repository caches?
>>
>> Eugene.
>>
>> "Sven Steiniger" <sven.steiniger@gmx.de> wrote in message
>> news:djldh4$tk4$1@is.intellij.net...
>>
>>>Still looking at this. Having
>>> public enum MyEnum implements MyInterface
>>>
>>>In 'Show Structure' using 'Group methods by Defining Type' it shows:
>>> MyEnum
>>> MyInterface
>>> Object
>>> Comparable
>>> ...methods...
>>>
>>>After reoping the project:
>>> MyEnum
>>> Object
>>> Comparable
>>> ...methods...
>>>
>>>So the implemented interface simply disappers.
>>>
>>>Sven Steiniger schrieb:
>>>
>>>>No I don't use retroweaver but we have a patched JDK.
>>>>But the error occurs no matter if this is used or not.
>>>>
>>>>Marcus Brito schrieb:
>>>>
>>>>
>>>>>Are you using Retroweaver? Check out my comments here:
>>>>>
>>>>>http://www.jetbrains.net/jira/browse/IDEA-3491
>>
>>

0

Please sign in to leave a comment.