| Summary: |
java import resolves templated class type into wrong java source |
| Product: |
[Applications] umbrello
|
Reporter: |
Ralf Habacker <ralf.habacker> |
| Component: |
general | Assignee: |
Umbrello Development Group <umbrello-devel> |
| Status: |
RESOLVED
FIXED
|
|
|
| Severity: |
normal
|
|
|
| Priority: |
NOR
|
|
|
| Version First Reported In: |
2.9.5 | |
|
| Target Milestone: |
--- | |
|
| Platform: |
Other | |
|
| OS: |
All | |
|
|
Latest Commit:
|
http://commits.kde.org/umbrello/c990500e7204e5bd92a7ab5f94d95f2ebc8ea98d
|
Version Fixed/Implemented In:
|
2.20.2 (KDE Applications 16.08.2)
|
|
Sentry Crash Report:
|
|
| |
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.