[umbrello] [Bug 368453] New: Java import fails to import enum

Ralf Habacker via KDE Bugzilla bugzilla_noreply at kde.org
Thu Sep 8 13:11:34 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=368453

            Bug ID: 368453
           Summary: Java import fails to import enum
           Product: umbrello
           Version: 2.9.5
          Platform: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: umbrello-devel at kde.org
          Reporter: ralf.habacker at freenet.de

Java fails to import enums in a case where imports references the dedicated
enum instead of the parent package as shown by the following example:

--- file main.java ----
import Test.Enum;

public class main {
    public Test.Enum myEnum;
}
--------- file Test.java ---------
public class Test { public enum Enum {  A, B, C } }


Reproducible: Always

Steps to Reproduce:
1. start umbrello
2. switch active language to 'java'
3. import the appended file main.java
4. Inspect the imported type 'Enum'

Actual Results:  
type 'Enum' is imported as class instead of being an enum.


Expected Results:  
Type 'Enum' should be imported as java type enum.



umbrello version 2.9.5 is the oldest version I have currently access to; the
bug itself may also be in older version.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list