[umbrello] [Bug 368484] New: java import resolves templated class type into wrong java source

Ralf Habacker via KDE Bugzilla bugzilla_noreply at kde.org
Fri Sep 9 09:57:06 UTC 2016


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

            Bug ID: 368484
           Summary: java import resolves templated class type into wrong
                    java source
           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

Importing main.java from the following files:

--- file Test.java
public class Test<T> {
    // T stands for "Type"
    private T t;

    public void set(T t) { this.t = t; }
    public T get() { return t; }
}

--- file main.java -------
import Test;
public class main {
    Test<Integer> integerBox;
}
using the following command line on linux:

strace -e trace=file  umbrello

shows that umbrello tries to open the following path

...../Test<Integer>.java 

which indicates that the java import tries to open an invalid java source file. 

Reproducible: Always

Steps to Reproduce:
1. save mentioned test case into related files
2. run umbrello with strace -e trace=file umbrello
4. switch active language to 'java' and import main.java


Actual Results:  
strace shows something like .../Test<Integer>.java 

Expected Results:  
strace should show that umbrello is loading .../Test.java

At least with version 2.9.5 the bug is present, but bug may be older.

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


More information about the umbrello-devel mailing list