Summary: | [compiler][1.5] generic inner type cannot extend Throwable | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Maxime Daniel <maxime_daniel> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.2 | ||
Target Milestone: | 3.2 M6 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Maxime Daniel
2006-02-17 07:26:10 EST
Released test as GenericTypeTest#_test915 (conflict during merge). Indeed, being nested inside a generic should also fail. Note that static member of generic types should remain eligible for being an exception (Y2): public class X<T> { class Y1 extends Throwable { private static final long serialVersionUID = 1L; T t; } static class Y2 extends Throwable { private static final long serialVersionUID = 1L; } class Y3<U> extends Throwable { private static final long serialVersionUID = 1L; T t; } } class Y4<E> extends Throwable {} Tuned and enabled GenericTypeTest#test915. Verified for 3.2 M6 using build I20060327-0010 |