|
135 | 135 |
|
136 | 136 | // TODO: superclass inheritance for JAXB XmlAccessorType |
137 | 137 |
|
| 138 | +//BH 2020.01.31 -- 3.2.7-v5 'L' used instead of 'J' in $fields$ |
| 139 | +//BH 2020.01.31 -- 3.2.7-v5 java.lang.reflect.* should not be truncated to reflect.* |
138 | 140 | //BH 2020.01.16 -- 3.2.7-v4 replaces extends java.awt.Component and javax.swing.JComponent |
139 | 141 | //BH 2020.01.12 -- 3.2.7-v3 fixes JAXB annotation marshalling for 3.2.7 |
140 | 142 | //BH 2020.01.11 -- 3.2.7-v3 corrects and rewrites synthetic bridge creation with much cleaner heap usage |
@@ -535,7 +537,7 @@ private char getLastCharInBuffer() { |
535 | 537 |
|
536 | 538 | // order above can be changed, but typeCode order must then be adapted |
537 | 539 |
|
538 | | - private final static String typeCodes = "ZBCDFILHSO"; |
| 540 | + private final static String typeCodes = "ZBCDFIJHSO"; |
539 | 541 |
|
540 | 542 | private class FieldInfo { |
541 | 543 | @SuppressWarnings("unchecked") |
@@ -2656,7 +2658,6 @@ private void addEnumConstants(EnumDeclaration e, List<EnumConstantDeclaration> e |
2656 | 2658 | * |
2657 | 2659 | * |
2658 | 2660 | * @param field the field being declared |
2659 | | - * @param fields |
2660 | 2661 | * @param isStatic |
2661 | 2662 | * @return true if anything was written to the buffer |
2662 | 2663 | */ |
@@ -4831,9 +4832,12 @@ private String getMyJavaClassNameLambda(boolean andIncrement) { |
4831 | 4832 |
|
4832 | 4833 | static String stripJavaLang(String name) { |
4833 | 4834 | // shorten java.lang.XXX.YYY but not java.lang.xxx.YYY |
4834 | | - String s = (!name.startsWith("java.lang.") || name.equals("java.lang.Object") |
4835 | | - || name.length() > 10 && !Character.isUpperCase(name.charAt(10)) ? name : name.substring(10)); |
4836 | | - return s; |
| 4835 | + return ( |
| 4836 | + !name.startsWith("java.lang.") |
| 4837 | + || name.equals("java.lang.Object") |
| 4838 | + || name.length() > 10 && !Character.isUpperCase(name.charAt(10)) ? |
| 4839 | + name : |
| 4840 | + name.substring(10)); |
4837 | 4841 | } |
4838 | 4842 |
|
4839 | 4843 | /** |
@@ -5563,7 +5567,7 @@ private String j2sGetParamCode(ITypeBinding binding) { |
5563 | 5567 | name = "S"; |
5564 | 5568 | break; |
5565 | 5569 | default: |
5566 | | - name = NameMapper.checkClassReplacement(name).replace("java.lang.", "").replace('.', '_'); |
| 5570 | + name = stripJavaLang(NameMapper.checkClassReplacement(name)).replace('.', '_'); |
5567 | 5571 | break; |
5568 | 5572 | } |
5569 | 5573 | if (arrays != null) { |
|
0 commit comments