decompiler: fixed incorrect method references from single letter classes
[idea/community.git] / plugins / java-decompiler / engine / src / org / jetbrains / java / decompiler / main / ClassWriter.java
index b55f29d7578f8eb50f43690262f57284d1850333..dc0f3fcaa32b7d5ac413f47b4b2004a3183846b4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2015 JetBrains s.r.o.
+ * Copyright 2000-2016 JetBrains s.r.o.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -98,7 +98,7 @@ public class ClassWriter {
         }
         else {
           // reference to a static method
-          buffer.append(ExprProcessor.getCastTypeName(new VarType(node.lambdaInformation.content_class_name, false)));
+          buffer.append(ExprProcessor.getCastTypeName(new VarType(node.lambdaInformation.content_class_name, true)));
         }
 
         buffer.append("::");