aboutsummaryrefslogtreecommitdiff
path: root/src/utils/lombok/bytecode/FixedClassWriter.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2011-12-20 06:01:58 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2011-12-20 06:01:58 +0100
commit5ac90442241ed586c7a0b3e0d455856202e6e81c (patch)
tree2253d32d830e11994586627e58e8ed458873220a /src/utils/lombok/bytecode/FixedClassWriter.java
parent96282212db42440e650a6b8eb80ad012b506c0cf (diff)
downloadlombok-5ac90442241ed586c7a0b3e0d455856202e6e81c.tar.gz
lombok-5ac90442241ed586c7a0b3e0d455856202e6e81c.tar.bz2
lombok-5ac90442241ed586c7a0b3e0d455856202e6e81c.zip
Moved Asm utils out of utils and into core, because utils isn't supposed to have an asm dependency and now due to lacking the jarjar treatment all sorts of VerifyError hell breaks loose if you put both lombok.jar and lombok-utils.jar of 0.10.6 in the classpath while compiling with javac.
Diffstat (limited to 'src/utils/lombok/bytecode/FixedClassWriter.java')
-rw-r--r--src/utils/lombok/bytecode/FixedClassWriter.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/utils/lombok/bytecode/FixedClassWriter.java b/src/utils/lombok/bytecode/FixedClassWriter.java
deleted file mode 100644
index 42d8c4c1..00000000
--- a/src/utils/lombok/bytecode/FixedClassWriter.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2010 The Project Lombok Authors.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package lombok.bytecode;
-
-import org.objectweb.asm.ClassReader;
-import org.objectweb.asm.ClassWriter;
-
-class FixedClassWriter extends ClassWriter {
- FixedClassWriter(ClassReader classReader, int flags) {
- super(classReader, flags);
- }
-
- @Override protected String getCommonSuperClass(String type1, String type2) {
- //By default, ASM will attempt to live-load the class types, which will fail if meddling with classes in an
- //environment with custom classloaders, such as Equinox. It's just an optimization; returning Object is always legal.
- try {
- return super.getCommonSuperClass(type1, type2);
- } catch (Exception e) {
- return "java/lang/Object";
- }
- }
-} \ No newline at end of file