Summary: | 3.1: tct 60, 44, 45- Clarification for translation | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Cam-Thu Le <camle> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | phuff |
Version: | 3.1 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Cam-Thu Le
2005-05-04 15:19:56 EDT
For question 3, I would not translate any of the messages. For question 1, "boxed" means wrap in the corresponding wrapper type. long -> java.lang.Long, int -> java.lang.Integer, etc. I leave the question 2 to somebody else as I have no idea how that could be explain in a few words. You can refer to the JLS 3. http://java.sun.com/docs/books/jls Re: question 2, In brief, when dealing with parameterized type (e.g. List<String>), erasure means erasing (discarding) parameters: List<String> --> List So when 2 methods are colliding because having same erasure, it means that there were two methods which once types got erased, where having same signatures. e.g. void foo(List<String> l1) {...} ---> void foo(List) void foo(List<Object> l2) {...} ---> void foo(List) from JLS 3rd edition 4.6 Type Erasure Type erasure is a mapping from types (possibly including parameterized types and type variables) to types (that are never parameterized types or type variables). We write |T| for the erasure of type T. The erasure mapping is defined as follows. • The erasure of a parameterized type (§4.5) G<T1, ... ,Tn> is |G|. • The erasure of a nested type T.C is |T|.C. • The erasure of an array type T[] is |T|[]. • The erasure of a type variable (§4.4) is the erasure of its leftmost bound. • The erasure of every other type is the type itself. The erasure of a method signature s is a signature consisting of the same name as s, and the erasures of all the formal parameter types given in s. Thank you for the info. Please close bug or change status so bug can be closed. closing Verified. Bug closed. |