hg: valhalla/valhalla/langtools: Fix problems when compiling auxiliary classes:

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Thu Oct 30 12:41:21 UTC 2014


Changeset: 21158ddaed18
Author:    mcimadamore
Date:      2014-10-30 12:37 +0000
URL:       http://hg.openjdk.java.net/valhalla/valhalla/langtools/rev/21158ddaed18

Fix problems when compiling auxiliary classes:
* signature attribute of class/field/method shoud not refer to specialized types
* moved specialization-related type routines in Types so that they can be shared more easily
* refactored main specialization routine to use a type visitor
* removed some visitor methods from SpecializeTypes to prevent types from being rewritten in the AST
* fixed logic by which StackMapFrame accesses to erased local variable types
* added auxiliary class tests

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Infer.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/SpecializeTypes.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TransTypes.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Code.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Items.java
+ test/tools/javac/valhalla/typespec/Auxiliary01.java
+ test/tools/javac/valhalla/typespec/Auxiliary02.java



More information about the valhalla-dev mailing list