[DEAD-5] incorrect java version set in POM Created: 21/Mar/14  Updated: 26/Mar/14  Resolved: 26/Mar/14

Status: Resolved
Project: Deadlink
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.6

Type: Bug Priority: Neutral
Reporter: Richard Unger Assignee: Marvin Kerkhoff
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

At the moment, you have javaVersion = 1.5 configured in your POM

However, your code is using java 1.7 features, resulting in the error:

"Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted"

Either the code needs to be made Java 1.5 compatible or the pom needs to be changed...



 Comments   
Comment by Richard Unger [ 21/Mar/14 ]
diff --git a/pom.xml b/pom.xml
index 04c1168..91540aa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,7 +16,7 @@
   
   <properties>
     <magnoliaVersion>5.2.2</magnoliaVersion>
-    <javaVersion>1.5</javaVersion>
+    <javaVersion>1.7</javaVersion>
   </properties>
   
   <licenses>
Comment by Marvin Kerkhoff [ 26/Mar/14 ]

Thx for the report. Changed it to 1.7.

Generated at Mon Feb 12 00:42:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.