| Summary: | umbrello crashs when importing templated java source code | ||
|---|---|---|---|
| Product: | [Applications] umbrello | Reporter: | thomas |
| Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | okellogg, sclaros |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 4.9.0 | |
| Sentry Crash Report: | |||
|
Description
thomas
2012-02-10 12:46:42 UTC
Could you attach Java code that triggers the crash? Thanks. A minimized sample:
public class Bug{
public static <T> void walk(){
jump();
}
public static <T> Class<T> jump(){
return null;
}
}
SVN commit 1279716 by okellogg:
parseStmt(): Check for keyword == "<" and skipToClosing('<') short before
expecting `keyword' to be a type name. If `keyword' is then not a type name,
avoid accessing m_klass in the error message if m_klass is NULL.
M +16 -1 javaimport.cpp
WebSVN link: http://websvn.kde.org/?view=rev&revision=1279716
(In reply to comment #2) > A minimized sample: > > public class Bug{ > public static <T> void walk(){ > jump(); > } > > public static <T> Class<T> jump(){ > return null; > } > } Thanks. With r1279716 at least it does not crash anymore but it's probably not perfect yet. I'll test some more before setting this to FIXED. Yup, r1279716 did the trick. *** Bug 301150 has been marked as a duplicate of this bug. *** apply fixed bug from 4.9.0 changelog |