Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357779 - [modeling] Java Problem: The method isEmpty() is undefined for the type String
Summary: [modeling] Java Problem: The method isEmpty() is undefined for the type String
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 0.9   Edit
Assignee: Miles Parker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 352032
  Show dependency tree
 
Reported: 2011-09-15 07:29 EDT by Steffen Pingel CLA
Modified: 2011-12-06 12:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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