summaryrefslogtreecommitdiff
path: root/test/files/run/t6168/JavaTest.java
Commit message (Collapse)AuthorAgeFilesLines
* SI-6168 Retain prefix when parsing types in JVM signaturesJason Zaugg2013-03-251-0/+8
When reading Java classfiles, the generic signatures are used to construct the corresponding Scala type signatures. In the enclosed test case, the field `SomeClass.f` had the JVM signature: LContext<LSomeClass;>.Field<Ljava.lang.Integer;>; The parser first (correctly) parsed the prefix as `Context[SomeClass]`. It then looked up the type symbol for `Field` in that that type. It then discarded the parsed prefix, and instead used the prefix from the info of the type symbol: `Context[ParentType]`. This commit changes the signature parser after the first `.` to use the result of prior parsing as the prefix. I've also included a test case with Java static inner classes, which don't require any special treatment.