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

Bug 357779

Summary: [modeling] Java Problem: The method isEmpty() is undefined for the type String
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Miles Parker <milesparker>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: 0.9   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 352032    

Description Steffen Pingel CLA 2011-09-15 07:29:45 EDT
The isEmpty() method does not exist in Java 1.5.

Resource: org.eclipse.mylyn.modeling.emf.core/src/org/eclipse/mylyn/modeling/emf/EmfStructureBridge.java
Location: line 252
Comment 1 Miles Parker CLA 2011-09-15 13:03:41 EDT
Fixed -- the toString part wasn't needed at all. Not sure why Eclipse didn't note this as the BREE is 1.5.
Comment 2 Steffen Pingel CLA 2011-09-15 14:35:35 EDT
I believe you need to have an actual Java 1.5 JRE registered to get error markers.
Comment 3 Miles Parker CLA 2011-09-15 22:02:46 EDT
Ah. And since there isn't one on the Mac... I wonder if API baselines would/could provide this?
Comment 4 Steffen Pingel CLA 2011-09-28 14:56:07 EDT
The method isEmpty() is undefined for the type String	
/org.eclipse.mylyn.modeling.emf.core/src/org/eclipse/mylyn/modeling/emf/EmfStructureBridge.java
line 257
Comment 5 Miles Parker CLA 2011-09-28 20:06:33 EDT
OK, we really need a better way to catch these, it's not likely that I'm going to remember to avoid that. Ad there doesn't seem to be a good way around this form what I can find online. Why isn't the automated build catching these?
Comment 6 Steffen Pingel CLA 2011-09-28 20:21:55 EDT
It's probably building with Java 1.6. A very simple way to catch these in the workspace is to configure a Java 1.5 runtime environment in Eclipse (comment 2).
Comment 7 Miles Parker CLA 2011-09-28 21:09:28 EDT
Again, that doesn't work on Mac OS X, because there is no JRE 1.5 on the mac. (comment 3)
Comment 8 Miles Parker CLA 2011-09-28 21:39:39 EDT
Please see bug 359324 for a partial solution.
Comment 9 Steffen Pingel CLA 2011-09-29 06:06:50 EDT
Sounds like this can indeed be done using API tooling: http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg06643.html. Do you know where to install execution environments from?
Comment 10 Miles Parker CLA 2011-09-29 13:18:01 EDT
Yep, we're all set:
https://github.com/MilesParker/mylyn.incubator/commit/5f6fcd7cffe5b0a32dbb24c259cd1e631c550a87

Related bug: 359326