* src/net/sf/jode/flow/TransformConstructor.java:

(lookForConstructorCall) Check for isStatic before setting
outer $this reference
(reported by Andreas Salathe bug #1306688)


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1394 379699f6-c40d-0410-875b-85095c16579e
master
hoenicke 19 years ago
parent 000cbe01e8
commit f7d5e15584
  1. 7
      jode/ChangeLog
  2. 3
      jode/src/net/sf/jode/flow/TransformConstructors.java

@ -1,3 +1,10 @@
2005-10-14 Jochen Hoenicke <jochen@gnu.org>
* src/net/sf/jode/flow/TransformConstructor.java:
(lookForConstructorCall) Check for isStatic before setting
outer $this reference
(reported by Andreas Salathé, bug #1306688)
2005-09-13 Jochen Hoenicke <jochen@gnu.org>
Check for NullPointer in SyntheticAnalyzer. Based on

@ -164,7 +164,8 @@ public class TransformConstructors {
for (int i=0; i< type01Count; ) {
MethodAnalyzer current = cons[i];
if ((Options.options & Options.OPTION_CONTRAFO) != 0
if (!isStatic
&& (Options.options & Options.OPTION_CONTRAFO) != 0
&& clazzAnalyzer.getOuterInstance() != null)
current.getParamInfo(1).setExpression
(clazzAnalyzer.getOuterInstance());

Loading…
Cancel
Save