Thread: Incompatible Types

Results 1 to 2 of 2
  1. #1 Incompatible Types 
    Registered Member Harambe_'s Avatar
    Join Date
    Jul 2007
    Posts
    504
    Thanks given
    15
    Thanks received
    22
    Rep Power
    13
    Getting this error, I tried searching it up but I cannot find anything.

    Code:
    src\server\model\players\skills\Crafting.java:316: incompatible types
    found   : java.lang.String
    required: int
                    switch (type) {

    Where the error is

    Code:
    private static void jewelryMaking(final Client c, final String type, int itemId, final int amount) {
    		
    		switch (type) {
    		case "RINGS":
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2010
    Age
    27
    Posts
    2,528
    Thanks given
    544
    Thanks received
    584
    Rep Power
    411
    I believe that that string switch statements was recently added in a newer version of Java. In that case, you'll need to update JDK.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Incompatible types
    By Embattled in forum Help
    Replies: 0
    Last Post: 11-05-2011, 07:43 AM
  2. [PI] Incompatible types
    By Mark in forum Help
    Replies: 6
    Last Post: 08-15-2011, 02:35 AM
  3. incompatible types
    By Wizard ebodA in forum Help
    Replies: 3
    Last Post: 07-26-2011, 03:38 PM
  4. incompatible types
    By pawelwoj in forum Help
    Replies: 0
    Last Post: 08-12-2009, 11:14 PM
  5. incompatible types..?
    By joey. in forum Help
    Replies: 2
    Last Post: 05-09-2009, 02:37 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •