Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366664

Summary: [Xbase] wrong synthetic variable names for arrays
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jan, tmf.xtext-inbox
Version: 2.2.0Flags: sven.efftinge: juno+
Target Milestone: M5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2011-12-14 01:28:38 EST
def test(Object x) {
		switch x {
			String[] : x.get(0)
		}
	}

translates  to

  public String test(final Object x) {
    String _switchResult = null;
    boolean matched = false;
    if (!matched) {
      if (x instanceof String[]) {
        final String[] _string[] = (String[])x;
        matched=true;
        final String[] _typeConverted__string[] = (String[])_string[];
        String _get = ((List<String>)Conversions.doWrapArray(_typeConverted__string[])).get(0);
        _switchResult = _get;
      }
    }
    return _switchResult;
  }
Comment 1 Jan Koehnlein CLA 2012-01-17 10:55:37 EST
Pushed to MASTER
Comment 2 Karsten Thoms CLA 2017-09-19 17:07:17 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:18:59 EDT
Closing all bugs that were set to RESOLVED before Neon.0